diff options
author | Manoj Gupta <manojgupta@google.com> | 2021-01-28 10:28:06 -0800 |
---|---|---|
committer | Manoj Gupta <manojgupta@chromium.org> | 2021-01-28 19:20:02 +0000 |
commit | 92fff664338311355a744616074c58d9c98527b5 (patch) | |
tree | 09524e37c7e8c7500dc61292ae4b95f73f1311b8 /compiler_wrapper/testdata/cros_hardened_golden/gcc_path.json | |
parent | 7ee49e4d7aa1cd14d378b8dff018574d1a573083 (diff) | |
download | toolchain-utils-92fff664338311355a744616074c58d9c98527b5.tar.gz |
compiler_wrapper: Add "-fcommon" to GCC
pass "-fcommon" to GCC to match clang. This is needed
since GCC 10 defaults to "-fno-common".
BUG=chromium:1171833
TEST=go test
Change-Id: Iceac503c8cc14afc1837c6952100189f45d2b567
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2657043
Reviewed-by: George Burgess <gbiv@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'compiler_wrapper/testdata/cros_hardened_golden/gcc_path.json')
-rw-r--r-- | compiler_wrapper/testdata/cros_hardened_golden/gcc_path.json | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler_wrapper/testdata/cros_hardened_golden/gcc_path.json b/compiler_wrapper/testdata/cros_hardened_golden/gcc_path.json index 36bf222b..c32ef3b8 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/gcc_path.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/gcc_path.json @@ -19,6 +19,7 @@ "-fno-reorder-blocks-and-partition", "-Wno-unused-local-typedefs", "-Wno-maybe-uninitialized", + "-fcommon", "-fstack-protector-strong", "-fPIE", "-pie", @@ -58,6 +59,7 @@ "-fno-reorder-blocks-and-partition", "-Wno-unused-local-typedefs", "-Wno-maybe-uninitialized", + "-fcommon", "-fstack-protector-strong", "-fPIE", "-pie", @@ -97,6 +99,7 @@ "-fno-reorder-blocks-and-partition", "-Wno-unused-local-typedefs", "-Wno-maybe-uninitialized", + "-fcommon", "-fstack-protector-strong", "-fPIE", "-pie", @@ -133,6 +136,7 @@ "-fno-reorder-blocks-and-partition", "-Wno-unused-local-typedefs", "-Wno-maybe-uninitialized", + "-fcommon", "-fstack-protector-strong", "-fPIE", "-pie", @@ -169,6 +173,7 @@ "-fno-reorder-blocks-and-partition", "-Wno-unused-local-typedefs", "-Wno-maybe-uninitialized", + "-fcommon", "-fstack-protector-strong", "-fPIE", "-pie", @@ -208,6 +213,7 @@ "-fno-reorder-blocks-and-partition", "-Wno-unused-local-typedefs", "-Wno-maybe-uninitialized", + "-fcommon", "-fstack-protector-strong", "-fPIE", "-pie", |