Pass -flto-partition=none to the PR ld/12365 test

*  ld-plugin/lto.exp: Pass -flto-partition=none to the PR
	ld/12365 test.
This commit is contained in:
H.J. Lu 2015-02-04 04:34:11 -08:00
parent 3101e6373e
commit 8962a307ae
2 changed files with 6 additions and 1 deletions

View 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

View 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
} {