You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2020/05/19 09:42:34 UTC

[mynewt-core] branch master updated (88d9df7 -> aabe520)

This is an automated email from the ASF dual-hosted git repository.

janc pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


    from 88d9df7  Update LICENSE file with TinyUSB content
     new 7393270  Fix complilation with GCC 10
     new aabe520  compiler: Set -fno-common for all compilers

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 compiler/arc/compiler.yml                   |  2 +-
 compiler/arm-none-eabi-m0/compiler.yml      |  2 +-
 compiler/arm-none-eabi-m3/compiler.yml      |  2 +-
 compiler/arm-none-eabi-m33/compiler.yml     |  2 +-
 compiler/arm-none-eabi-m4/compiler.yml      |  2 +-
 compiler/arm-none-eabi-m7/compiler.yml      |  2 +-
 compiler/mips/compiler.yml                  |  2 +-
 compiler/riscv64/compiler.yml               |  2 +-
 compiler/sim-armv7/compiler.yml             |  2 +-
 compiler/sim-mips/compiler.yml              |  2 +-
 compiler/sim/compiler.yml                   |  2 +-
 compiler/xc32/compiler.yml                  |  2 +-
 encoding/json/hosttest/src/test_json_priv.h | 12 ++++++------
 encoding/json/selftest/src/test_json_priv.h | 12 ++++++------
 fs/fs/src/fs_mount.c                        |  2 +-
 fs/nffs/selftest/src/nffs_test_utils.h      |  3 ---
 fs/nffs/src/nffs_dir.c                      |  2 +-
 fs/nffs/src/nffs_file.c                     |  2 +-
 18 files changed, 27 insertions(+), 30 deletions(-)


[mynewt-core] 02/02: compiler: Set -fno-common for all compilers

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit aabe520931bb579e1a73063e745d8f311b2a8f48
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Mon May 18 14:50:04 2020 +0200

    compiler: Set -fno-common for all compilers
---
 compiler/arc/compiler.yml               | 2 +-
 compiler/arm-none-eabi-m0/compiler.yml  | 2 +-
 compiler/arm-none-eabi-m3/compiler.yml  | 2 +-
 compiler/arm-none-eabi-m33/compiler.yml | 2 +-
 compiler/arm-none-eabi-m4/compiler.yml  | 2 +-
 compiler/arm-none-eabi-m7/compiler.yml  | 2 +-
 compiler/mips/compiler.yml              | 2 +-
 compiler/riscv64/compiler.yml           | 2 +-
 compiler/sim-armv7/compiler.yml         | 2 +-
 compiler/sim-mips/compiler.yml          | 2 +-
 compiler/sim/compiler.yml               | 2 +-
 compiler/xc32/compiler.yml              | 2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/compiler/arc/compiler.yml b/compiler/arc/compiler.yml
index 60d1989..a8a6747 100644
--- a/compiler/arc/compiler.yml
+++ b/compiler/arc/compiler.yml
@@ -25,7 +25,7 @@ compiler.path.objdump: arc-elf32-objdump
 compiler.path.objsize: arc-elf32-size
 compiler.path.objcopy: arc-elf32-objcopy
 
-compiler.flags.default: [-mno-sdata, -Wall, -Werror, -fno-exceptions, -fomit-frame-pointer, -ffunction-sections, -fdata-sections]
+compiler.flags.default: [-mno-sdata, -Wall, -Werror, -fno-exceptions, -fomit-frame-pointer, -ffunction-sections, -fdata-sections, -fno-common]
 compiler.flags.optimized: [compiler.flags.default, -Os, -ggdb]
 compiler.flags.debug: [compiler.flags.default, -Og, -ggdb]
 
diff --git a/compiler/arm-none-eabi-m0/compiler.yml b/compiler/arm-none-eabi-m0/compiler.yml
index 037b26b..b5ae235 100644
--- a/compiler/arm-none-eabi-m0/compiler.yml
+++ b/compiler/arm-none-eabi-m0/compiler.yml
@@ -25,7 +25,7 @@ compiler.path.objdump: arm-none-eabi-objdump
 compiler.path.objsize: arm-none-eabi-size
 compiler.path.objcopy: arm-none-eabi-objcopy
 
-compiler.flags.default: [-march=armv6s-m, -mcpu=cortex-m0, -mthumb-interwork, -mthumb, -Wall, -Werror, -fno-exceptions, -fomit-frame-pointer, -ffunction-sections, -fdata-sections, -DCMSIS_VECTAB_VIRTUAL, -DCMSIS_VECTAB_VIRTUAL_HEADER_FILE="mynewt_cm0_vectab.h"]
+compiler.flags.default: [-march=armv6s-m, -mcpu=cortex-m0, -mthumb-interwork, -mthumb, -Wall, -Werror, -fno-exceptions, -fomit-frame-pointer, -ffunction-sections, -fdata-sections, -DCMSIS_VECTAB_VIRTUAL, -DCMSIS_VECTAB_VIRTUAL_HEADER_FILE="mynewt_cm0_vectab.h", -fno-common]
 compiler.flags.optimized: [compiler.flags.default, -Os, -ggdb]
 compiler.flags.speed: [compiler.flags.default, -O3, -ggdb]
 compiler.flags.debug: [compiler.flags.default, -Og, -ggdb]
diff --git a/compiler/arm-none-eabi-m3/compiler.yml b/compiler/arm-none-eabi-m3/compiler.yml
index 1e17831..3cd5997 100644
--- a/compiler/arm-none-eabi-m3/compiler.yml
+++ b/compiler/arm-none-eabi-m3/compiler.yml
@@ -25,7 +25,7 @@ compiler.path.objdump: arm-none-eabi-objdump
 compiler.path.objsize: arm-none-eabi-size
 compiler.path.objcopy: arm-none-eabi-objcopy
 
-compiler.flags.base: [-mcpu=cortex-m3, -mthumb-interwork, -mthumb, -Wall, -Werror, -fno-exceptions, -ffunction-sections, -fdata-sections]
+compiler.flags.base: [-mcpu=cortex-m3, -mthumb-interwork, -mthumb, -Wall, -Werror, -fno-exceptions, -ffunction-sections, -fdata-sections, -fno-common]
 compiler.flags.default: [compiler.flags.base, -O1, -ggdb]
 compiler.flags.optimized: [compiler.flags.base, -Os, -ggdb]
 compiler.flags.speed: [compiler.flags.base, -O3, -ggdb]
diff --git a/compiler/arm-none-eabi-m33/compiler.yml b/compiler/arm-none-eabi-m33/compiler.yml
index 0e54053..0567ad3 100644
--- a/compiler/arm-none-eabi-m33/compiler.yml
+++ b/compiler/arm-none-eabi-m33/compiler.yml
@@ -25,7 +25,7 @@ compiler.path.objdump: arm-none-eabi-objdump
 compiler.path.objsize: arm-none-eabi-size
 compiler.path.objcopy: arm-none-eabi-objcopy
 
-compiler.flags.base: -mcpu=cortex-m33+nodsp -mthumb-interwork -mthumb -Wall -Werror -fno-exceptions -ffunction-sections -fdata-sections
+compiler.flags.base: -mcpu=cortex-m33+nodsp -mthumb-interwork -mthumb -Wall -Werror -fno-exceptions -ffunction-sections -fdata-sections -fno-common
 compiler.flags.default: [compiler.flags.base, -O1, -ggdb]
 compiler.flags.optimized: [compiler.flags.base, -Os, -ggdb]
 compiler.flags.speed: [compiler.flags.base, -O3, -ggdb]
diff --git a/compiler/arm-none-eabi-m4/compiler.yml b/compiler/arm-none-eabi-m4/compiler.yml
index 7440ad5..13fc149 100644
--- a/compiler/arm-none-eabi-m4/compiler.yml
+++ b/compiler/arm-none-eabi-m4/compiler.yml
@@ -25,7 +25,7 @@ compiler.path.objdump: arm-none-eabi-objdump
 compiler.path.objsize: arm-none-eabi-size
 compiler.path.objcopy: arm-none-eabi-objcopy
 
-compiler.flags.base: [-mcpu=cortex-m4, -mthumb-interwork, -mthumb, -Wall, -Werror, -fno-exceptions, -ffunction-sections, -fdata-sections]
+compiler.flags.base: [-mcpu=cortex-m4, -mthumb-interwork, -mthumb, -Wall, -Werror, -fno-exceptions, -ffunction-sections, -fdata-sections, -fno-common]
 compiler.flags.default: [compiler.flags.base, -O1, -ggdb]
 compiler.flags.optimized: [compiler.flags.base, -Os, -ggdb]
 compiler.flags.speed: [compiler.flags.base, -O3, -ggdb]
diff --git a/compiler/arm-none-eabi-m7/compiler.yml b/compiler/arm-none-eabi-m7/compiler.yml
index e882311..91b222a 100644
--- a/compiler/arm-none-eabi-m7/compiler.yml
+++ b/compiler/arm-none-eabi-m7/compiler.yml
@@ -25,7 +25,7 @@ compiler.path.objdump: arm-none-eabi-objdump
 compiler.path.objsize: arm-none-eabi-size
 compiler.path.objcopy: arm-none-eabi-objcopy
 
-compiler.flags.base: [-mcpu=cortex-m7, -mthumb-interwork, -mthumb, -Wall, -Werror, -fno-exceptions, -ffunction-sections, -fdata-sections]
+compiler.flags.base: [-mcpu=cortex-m7, -mthumb-interwork, -mthumb, -Wall, -Werror, -fno-exceptions, -ffunction-sections, -fdata-sections, -fno-common]
 compiler.flags.default: [compiler.flags.base, -O1, -ggdb]
 compiler.flags.optimized: [compiler.flags.base, -Os, -ggdb]
 compiler.flags.speed: [compiler.flags.base, -O3, -ggdb]
diff --git a/compiler/mips/compiler.yml b/compiler/mips/compiler.yml
index bacecee..7b34ce5 100644
--- a/compiler/mips/compiler.yml
+++ b/compiler/mips/compiler.yml
@@ -24,7 +24,7 @@ compiler.path.objdump: "mips-mti-elf-objdump"
 compiler.path.objsize: "mips-mti-elf-size"
 compiler.path.objcopy: "mips-mti-elf-objcopy"
 
-compiler.flags.base: [-std=gnu11, -EL, -mips32r2, -Wall, -Werror]
+compiler.flags.base: [-std=gnu11, -EL, -mips32r2, -Wall, -Werror, -fno-common]
 compiler.flags.default: [compiler.flags.base, -O2, -g]
 compiler.flags.optimized: [compiler.flags.base, -Os, -g]
 compiler.flags.debug: [compiler.flags.base, -g3]
diff --git a/compiler/riscv64/compiler.yml b/compiler/riscv64/compiler.yml
index 1c1777f..998ee9f 100644
--- a/compiler/riscv64/compiler.yml
+++ b/compiler/riscv64/compiler.yml
@@ -24,7 +24,7 @@ compiler.path.objdump: "riscv64-unknown-elf-objdump"
 compiler.path.objsize: "riscv64-unknown-elf-size"
 compiler.path.objcopy: "riscv64-unknown-elf-objcopy"
 
-compiler.flags.base: [-std=gnu11, -Wall, -Werror, -Wno-format-truncation, -ffunction-sections, -fdata-sections, -fno-builtin-printf]
+compiler.flags.base: [-std=gnu11, -Wall, -Werror, -Wno-format-truncation, -ffunction-sections, -fdata-sections, -fno-builtin-printf, -fno-common]
 compiler.flags.default: [compiler.flags.base, -O1, -ggdb]
 compiler.flags.optimized: [compiler.flags.base, -Os, -ggdb]
 compiler.flags.debug: [compiler.flags.base, -Og, -ggdb]
diff --git a/compiler/sim-armv7/compiler.yml b/compiler/sim-armv7/compiler.yml
index 79a710f..c37eea6 100644
--- a/compiler/sim-armv7/compiler.yml
+++ b/compiler/sim-armv7/compiler.yml
@@ -29,7 +29,7 @@ compiler.flags.base: >
     -Wall -Werror -ggdb -DARCH_sim
 compiler.ld.resolve_circular_deps: true
 
-compiler.flags.default: [compiler.flags.base, -O1]
+compiler.flags.default: [compiler.flags.base, -O1, -fno-common]
 compiler.flags.debug: [compiler.flags.base, -O0]
 compiler.as.flags: [-x, assembler-with-cpp]
 compiler.ld.mapfile: false
diff --git a/compiler/sim-mips/compiler.yml b/compiler/sim-mips/compiler.yml
index d8e814f23..bf17dab 100644
--- a/compiler/sim-mips/compiler.yml
+++ b/compiler/sim-mips/compiler.yml
@@ -24,7 +24,7 @@ compiler.path.archive: "mips-mti-linux-gnu-ar"
 compiler.path.objdump: "mips-mti-linux-gnu-objdump"
 compiler.path.objsize: "mips-mti-linux-gnu-size"
 compiler.path.objcopy: "mips-mti-linux-gnu-objcopy"
-compiler.flags.base: [-std=gnu11, -EL, -mips32r2, -Wall, -Werror, -ggdb]
+compiler.flags.base: [-std=gnu11, -EL, -mips32r2, -Wall, -Werror, -ggdb, -fno-common]
 compiler.ld.resolve_circular_deps: true
 
 compiler.flags.default: [compiler.flags.base, -O1]
diff --git a/compiler/sim/compiler.yml b/compiler/sim/compiler.yml
index 442b31c..8a72d63 100644
--- a/compiler/sim/compiler.yml
+++ b/compiler/sim/compiler.yml
@@ -25,7 +25,7 @@ compiler.path.archive: "ar"
 compiler.path.objdump: "objdump"
 compiler.path.objsize: "size"
 compiler.path.objcopy: "objcopy"
-compiler.flags.base: [-m32, -Wall, -Werror, -ggdb, -ffunction-sections, -fdata-sections]
+compiler.flags.base: [-m32, -Wall, -Werror, -ggdb, -ffunction-sections, -fdata-sections, -fno-common]
 compiler.ld.resolve_circular_deps: true
 
 compiler.flags.default: [compiler.flags.base, -O1]
diff --git a/compiler/xc32/compiler.yml b/compiler/xc32/compiler.yml
index 7cfbd24..326bb1d 100644
--- a/compiler/xc32/compiler.yml
+++ b/compiler/xc32/compiler.yml
@@ -24,7 +24,7 @@ compiler.path.objdump: "xc32-objdump"
 compiler.path.objsize: "xc32-size"
 compiler.path.objcopy: "xc32-objcopy"
 
-compiler.flags.base: [-std=gnu11, -msmart-io=0]
+compiler.flags.base: [-std=gnu11, -msmart-io=0, -fno-common]
 compiler.flags.default: [compiler.flags.base, -O2, -g3]
 compiler.flags.optimized: [compiler.flags.base, -Os, -g3]
 compiler.flags.debug: [compiler.flags.base, -g3]


[mynewt-core] 01/02: Fix complilation with GCC 10

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 73932702edef3f206d4ad9671971e6e93fe37a03
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Mon May 18 14:36:04 2020 +0200

    Fix complilation with GCC 10
    
    GCC 10 enables -fno-common by default.
---
 encoding/json/hosttest/src/test_json_priv.h | 12 ++++++------
 encoding/json/selftest/src/test_json_priv.h | 12 ++++++------
 fs/fs/src/fs_mount.c                        |  2 +-
 fs/nffs/selftest/src/nffs_test_utils.h      |  3 ---
 fs/nffs/src/nffs_dir.c                      |  2 +-
 fs/nffs/src/nffs_file.c                     |  2 +-
 6 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/encoding/json/hosttest/src/test_json_priv.h b/encoding/json/hosttest/src/test_json_priv.h
index a32c4fb..69ace93 100644
--- a/encoding/json/hosttest/src/test_json_priv.h
+++ b/encoding/json/hosttest/src/test_json_priv.h
@@ -28,14 +28,14 @@
 extern "C" {
 #endif
 
-char *output;
-char *output1;
-char *outputboolspace;
-char *outputboolempty;
+extern char *output;
+extern char *output1;
+extern char *outputboolspace;
+extern char *outputboolempty;
 
 #define JSON_BIGBUF_SIZE    192
-char *bigbuf;
-int buf_index;
+extern char *bigbuf;
+extern int buf_index;
 
 /* a test structure to hold the json flat buffer and pass bytes
  * to the decoder */
diff --git a/encoding/json/selftest/src/test_json_priv.h b/encoding/json/selftest/src/test_json_priv.h
index a32c4fb..69ace93 100644
--- a/encoding/json/selftest/src/test_json_priv.h
+++ b/encoding/json/selftest/src/test_json_priv.h
@@ -28,14 +28,14 @@
 extern "C" {
 #endif
 
-char *output;
-char *output1;
-char *outputboolspace;
-char *outputboolempty;
+extern char *output;
+extern char *output1;
+extern char *outputboolspace;
+extern char *outputboolempty;
 
 #define JSON_BIGBUF_SIZE    192
-char *bigbuf;
-int buf_index;
+extern char *bigbuf;
+extern int buf_index;
 
 /* a test structure to hold the json flat buffer and pass bytes
  * to the decoder */
diff --git a/fs/fs/src/fs_mount.c b/fs/fs/src/fs_mount.c
index f43738a..5319aed 100644
--- a/fs/fs/src/fs_mount.c
+++ b/fs/fs/src/fs_mount.c
@@ -96,7 +96,7 @@ fs_ops_for(const char *fs_name)
     return fops;
 }
 
-struct fs_ops not_initialized_ops;
+extern struct fs_ops not_initialized_ops;
 
 struct fs_ops *
 fs_ops_from_container(struct fops_container *container)
diff --git a/fs/nffs/selftest/src/nffs_test_utils.h b/fs/nffs/selftest/src/nffs_test_utils.h
index 0dd2147..ad22cb9 100644
--- a/fs/nffs/selftest/src/nffs_test_utils.h
+++ b/fs/nffs/selftest/src/nffs_test_utils.h
@@ -36,9 +36,6 @@
 extern "C" {
 #endif
 
-extern struct nffs_hash_entry *nffs_test_touched_entries;
-int nffs_test_num_touched_entries;
-
 extern int flash_native_memset(uint32_t offset, uint8_t c, uint32_t len);
 
 void nffs_test_util_assert_ent_name(struct fs_dirent *dirent,
diff --git a/fs/nffs/src/nffs_dir.c b/fs/nffs/src/nffs_dir.c
index 8cdefa9..a30636a 100644
--- a/fs/nffs/src/nffs_dir.c
+++ b/fs/nffs/src/nffs_dir.c
@@ -23,7 +23,7 @@
 #include "nffs/nffs.h"
 #include "fs/fs_if.h"
 
-struct fs_ops nffs_ops;
+extern struct fs_ops nffs_ops;
 
 static struct nffs_dir *
 nffs_dir_alloc(void)
diff --git a/fs/nffs/src/nffs_file.c b/fs/nffs/src/nffs_file.c
index bf1866f..c7bcb02 100644
--- a/fs/nffs/src/nffs_file.c
+++ b/fs/nffs/src/nffs_file.c
@@ -23,7 +23,7 @@
 #include "nffs/nffs.h"
 #include "fs/fs_if.h"
 
-struct fs_ops nffs_ops;
+extern struct fs_ops nffs_ops;
 
 static struct nffs_file *
 nffs_file_alloc(void)