diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-08-08 20:20:43 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-08-08 20:20:43 -0700 |
commit | 25d28c91b89d8f4a7e78b98b01e2c2382cea3e60 (patch) | |
tree | fccda91f75088716b38cefc8d387b625d51be5ec /ld/testsuite/ld-i386 | |
parent | 9165f4548be8612161fb90cfad9bd0cc6a752c90 (diff) | |
download | gdb-25d28c91b89d8f4a7e78b98b01e2c2382cea3e60.zip gdb-25d28c91b89d8f4a7e78b98b01e2c2382cea3e60.tar.gz gdb-25d28c91b89d8f4a7e78b98b01e2c2382cea3e60.tar.bz2 |
ld: Require GCC 5 or above for 3 x86 tests
Require GCC 5 or above for 3 x86 tests which fail with GCC 4.9.3.
PR ld/21924
* testsuite/ld-i386/i386.exp: Require GCC 5 or above for
"weakundef1 with PIE" test.
* testsuite/ld-x86-64/tls.exp: Require GCC 5 or above for
"tlsdesc1" and "tlsdesc1 with PIE" tests.
Diffstat (limited to 'ld/testsuite/ld-i386')
-rw-r--r-- | ld/testsuite/ld-i386/i386.exp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index 2d7d532..060a7e9 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -1252,16 +1252,20 @@ if { [isnative] "pass.out" \ "$NOPIE_CFLAGS" \ ] \ - [list \ - "Run weakundef1 with PIE" \ - "-pie" \ - "" \ - { weakundef1.c } \ - "weakundef1pie" \ - "pass.out" \ - "-fPIE" \ - ] \ ] + if { [at_least_gcc_version 5 0] } { + run_ld_link_exec_tests [list \ + [list \ + "Run weakundef1 with PIE" \ + "-pie" \ + "" \ + { weakundef1.c } \ + "weakundef1pie" \ + "pass.out" \ + "-fPIE" \ + ] \ + ] + } } if { !([istarget "i?86-*-linux*"] |