Add -flto to PR ld/20321 test

Before GCC 4.9, -flto is required for final LTO link.  Add -flto to PR
ld/20321 test to support older versions of GCC.

	* testsuite/ld-plugin/lto.exp: Add -flto to PR ld/20321 test.
This commit is contained in:
H.J. Lu 2016-07-05 07:35:52 -07:00
parent 647c264cb2
commit 29d7478bc6
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2016-07-05 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-plugin/lto.exp: Add -flto to PR ld/20321 test.
2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
* testsuite/ld-arm/farcall-thumb2-purecode.d: New test result.

View file

@ -199,7 +199,7 @@ set lto_link_tests [list \
"$plug_opt" "-flto $lto_no_fat" \
{pr20267b.c} {} "libpr20267b.a"] \
[list "Build pr20321" \
"-Wl,-plugin,$plug_so" "-flto" \
"-flto -Wl,-plugin,$plug_so" "-flto" \
{pr20321.c} {} "pr20321" "c" ".*: duplicated plugin"] \
]