aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-08 20:20:43 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-08 20:20:43 -0700
commit25d28c91b89d8f4a7e78b98b01e2c2382cea3e60 (patch)
treefccda91f75088716b38cefc8d387b625d51be5ec /ld/testsuite/ld-i386
parent9165f4548be8612161fb90cfad9bd0cc6a752c90 (diff)
downloadgdb-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.exp22
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*"]