aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-selective
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-07-08 03:09:13 +0000
committerAlan Modra <amodra@gmail.com>2009-07-08 03:09:13 +0000
commit466a53e020dbe24d4b1f1600002c2bfc46360f3d (patch)
treede14affd9273333ff3aa616f0f1e902ab9476130 /ld/testsuite/ld-selective
parent1a17320ea5486858510f7dd037f8dc63dbfc34c3 (diff)
downloadgdb-466a53e020dbe24d4b1f1600002c2bfc46360f3d.zip
gdb-466a53e020dbe24d4b1f1600002c2bfc46360f3d.tar.gz
gdb-466a53e020dbe24d4b1f1600002c2bfc46360f3d.tar.bz2
* ld-selective/selective.exp: Remove check that $CC contains the
string "gcc". Do -dumpversion for $CXX.
Diffstat (limited to 'ld/testsuite/ld-selective')
-rw-r--r--ld/testsuite/ld-selective/selective.exp16
1 files changed, 7 insertions, 9 deletions
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp
index b698154..f4711ff 100644
--- a/ld/testsuite/ld-selective/selective.exp
+++ b/ld/testsuite/ld-selective/selective.exp
@@ -108,16 +108,14 @@ foreach testitem $seltests {
if { $testtype == "C++" } {
set testflags "$cflags $cxxflags"
set compiler "$CXX"
- if [string match "*gcc*" [lindex $CC 0]] {
- # Starting with 3.4.0, -fvtable-gc is no longer supported and thus
- # the functionality we try to test for cannot be expected to work.
- set version [remote_exec host "$CC -dumpversion"]
- set version [lindex $version 1]
- if [regexp "^(\[1-9\]\[0-9\]+|\[4-9\]|3.(\[1-9\]\[0-9\]+|\[4-9\]))\\." $version] {
- setup_xfail {*-*-*}
- }
+ # Starting with 3.4.0, -fvtable-gc is no longer supported and thus
+ # the functionality we try to test for cannot be expected to work.
+ set version [remote_exec host "$CXX -dumpversion"]
+ set version [lindex $version 1]
+ if [regexp "^(\[1-9\]\[0-9\]+|\[4-9\]|3.(\[1-9\]\[0-9\]+|\[4-9\]))\\." $version] {
+ setup_xfail {*-*-*}
}
- } {
+ } else {
set testflags "$cflags"
set compiler "$CC"
}