diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-07-05 07:35:52 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-07-05 07:35:52 -0700 |
commit | 29d7478bc63762606302a0ae0525b22eaf85b47b (patch) | |
tree | 0551a3e4c9a363dab90dc704d36579de2cd87484 /ld/testsuite | |
parent | 647c264cb2c60c90ee2d09edb6bd001ff357306d (diff) | |
download | gdb-29d7478bc63762606302a0ae0525b22eaf85b47b.zip gdb-29d7478bc63762606302a0ae0525b22eaf85b47b.tar.gz gdb-29d7478bc63762606302a0ae0525b22eaf85b47b.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-plugin/lto.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp index 2ecb4d0..4ed163e 100644 --- a/ld/testsuite/ld-plugin/lto.exp +++ b/ld/testsuite/ld-plugin/lto.exp @@ -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"] \ ] |