Pass -flto-partition=none to the PR ld/12365 test
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Feb 2015 12:34:11 +0000 (04:34 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Feb 2015 12:34:11 +0000 (04:34 -0800)
*  ld-plugin/lto.exp: Pass -flto-partition=none to the PR
ld/12365 test.

ld/testsuite/ChangeLog
ld/testsuite/ld-plugin/lto.exp

index 876bafa84fe3eb688f2692fc9e2a3b2746dc0d9a..1041bd1b3d810bf7e10831f30b1029b7ef86c055 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       *  ld-plugin/lto.exp: Pass -flto-partition=none to the PR
+       ld/12365 test.
+
 2015-02-03  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/12365
index 400e683ec725f6d99e6815dfca12fa05b8984c25..065e1bbcd087774ae9bcdca4944caf1f15a9dc1c 100644 (file)
@@ -384,7 +384,7 @@ if {![string match "" $catch_output]} {
 if { [at_least_gcc_version 4 7] } {
     # Check expected LTO linker errors.
     set testname "PR ld/12365"
-    set exec_output [run_host_cmd "$CC" "-O2 -flto -fuse-linker-plugin tmpdir/pr12365a.o tmpdir/pr12365b.o tmpdir/pr12365c.o"]
+    set exec_output [run_host_cmd "$CC" "-O2 -flto -flto-partition=none -fuse-linker-plugin tmpdir/pr12365a.o tmpdir/pr12365b.o tmpdir/pr12365c.o"]
     if { [ regexp "undefined reference to `my_bcopy'" $exec_output ] } {
        pass $testname
     } {