aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJing Yu <jingyu@google.com>2015-06-11 12:41:36 -0700
committerJing Yu <jingyu@google.com>2015-06-11 12:52:07 -0700
commita3a0c39166742c9ef9bb5d87ab51320b7f62cb92 (patch)
tree4a101da4abe30b2afa6d53f075539c703ee3d760
parentc1d8560ea5721191e30e2fcad720345730918497 (diff)
downloadfsf-binutils-gdb-a3a0c39166742c9ef9bb5d87ab51320b7f62cb92.zip
fsf-binutils-gdb-a3a0c39166742c9ef9bb5d87ab51320b7f62cb92.tar.gz
fsf-binutils-gdb-a3a0c39166742c9ef9bb5d87ab51320b7f62cb92.tar.bz2
Fix broken gold/testsuite/script_test_12 in some setup.
This patch adds -O0 to gold script_test_12 test, hoping that compiler won't change the order of globel variables that the test assumes. Changelog: testsuite/Makefile.am: Add -O0 to compile script_test_12 test. testsuite/Makefile.in: Regenerate.
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/testsuite/Makefile.am4
-rw-r--r--gold/testsuite/Makefile.in4
3 files changed, 13 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 94c0088..60d16d5 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-11 Jing Yu <jingyu@google.com>
+
+ * testsuite/Makefile.am: Add -O0 for script_test_12 test.
+ * testsuite/Makefile.in: Regenerate.
+
2015-06-11 Davide Italiano <dccitaliano@gmail.com>
* gold.h (is_cident): Correct typo.
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
index 0ae99bd..7669f27 100644
--- a/gold/testsuite/Makefile.am
+++ b/gold/testsuite/Makefile.am
@@ -1669,6 +1669,10 @@ script_test_12: gcctestdir/ld $(srcdir)/script_test_12.t script_test_12a.o scrip
check_PROGRAMS += script_test_12i
script_test_12i: gcctestdir/ld $(srcdir)/script_test_12i.t script_test_12a.o script_test_12b.o
$(LINK) -Bgcctestdir/ -Wl,-T,$(srcdir)/script_test_12i.t script_test_12a.o script_test_12b.o
+script_test_12a.o: script_test_12a.c
+ $(COMPILE) -O0 -c -o $@ $<
+script_test_12b.o: script_test_12b.c
+ $(COMPILE) -O0 -c -o $@ $<
# Test --dynamic-list, --dynamic-list-data, --dynamic-list-cpp-new,
# and --dynamic-list-cpp-typeinfo
diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in
index 5228650..3f8818d 100644
--- a/gold/testsuite/Makefile.in
+++ b/gold/testsuite/Makefile.in
@@ -5659,6 +5659,10 @@ uninstall-am:
@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(LINK) -Bgcctestdir/ -Wl,-T,$(srcdir)/script_test_12.t script_test_12a.o script_test_12b.o
@GCC_TRUE@@NATIVE_LINKER_TRUE@script_test_12i: gcctestdir/ld $(srcdir)/script_test_12i.t script_test_12a.o script_test_12b.o
@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(LINK) -Bgcctestdir/ -Wl,-T,$(srcdir)/script_test_12i.t script_test_12a.o script_test_12b.o
+@GCC_TRUE@@NATIVE_LINKER_TRUE@script_test_12a.o: script_test_12a.c
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(COMPILE) -O0 -c -o $@ $<
+@GCC_TRUE@@NATIVE_LINKER_TRUE@script_test_12b.o: script_test_12b.c
+@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(COMPILE) -O0 -c -o $@ $<
@GCC_TRUE@@NATIVE_LINKER_TRUE@dynamic_list: basic_test.o gcctestdir/ld $(srcdir)/dynamic_list.t
@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXLINK) -Bgcctestdir/ basic_test.o \
@GCC_TRUE@@NATIVE_LINKER_TRUE@ -Wl,--dynamic-list $(srcdir)/dynamic_list.t \