diff options
author | Alan Modra <amodra@bigpond.net.au> | 2009-07-08 03:09:13 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2009-07-08 03:09:13 +0000 |
commit | 1b7b187df96d0258cdd880c3641ac458876af05b (patch) | |
tree | bee7942c1503322a200a89a818f100471c57d904 | |
parent | 756bc0893fca8df9558028f6909d2a0bf0c633fe (diff) | |
download | binutils-redhat-1b7b187df96d0258cdd880c3641ac458876af05b.tar.gz |
* ld-selective/selective.exp: Remove check that $CC contains the
string "gcc". Do -dumpversion for $CXX.
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-selective/selective.exp | 16 |
2 files changed, 12 insertions, 9 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 33337974fb..5e4b7107f6 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-07-08 Alan Modra <amodra@bigpond.net.au> + + * ld-selective/selective.exp: Remove check that $CC contains the + string "gcc". Do -dumpversion for $CXX. + 2009-06-30 Nick Clifton <nickc@redhat.com> PR 10288 diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index b698154374..f4711ff590 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" } |