gold: Compile common tests with -fcommon
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 2 May 2020 13:18:16 +0000 (06:18 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 2 May 2020 13:48:26 +0000 (06:48 -0700)
commit8c164434186b471fc43a47055af9632c56affdcd
treea11eac2815a3d9f60d35e939dfc60379248052db
parenta51119cde483f4e9eeaa4450d3f2a7b0e52fea3d
gold: Compile common tests with -fcommon

Since GCC 10 defaults to -fno-common, add -fcommon to common tests to
force common behavior.

PR gold/25904
* testsuite/Makefile.am (COMMON_TEST_C_CFLAGS): New.
(common_test_1.o): New rule.
(common_test_2.o): Likewise.
(common_test_3.o): Likewise.
(plugin_common_test_1.o): Likewise.
(plugin_common_test_2.o): Likewise.
(common_test_1_v1.o): Likewise.
(common_test_1_v2.o): Likewise.
(common_test_2_pic.o): Compile with $(COMMON_TEST_C_CFLAGS).
(common_test_3_pic.o): Likewise.
* testsuite/Makefile.in: Regenerated.
gold/ChangeLog
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
This page took 0.025763 seconds and 4 git commands to generate.