* ld-selective/selective.exp: Remove check that $CC contains the
authorAlan Modra <amodra@gmail.com>
Wed, 8 Jul 2009 03:09:13 +0000 (03:09 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 8 Jul 2009 03:09:13 +0000 (03:09 +0000)
string "gcc".  Do -dumpversion for $CXX.

ld/testsuite/ChangeLog
ld/testsuite/ld-selective/selective.exp

index 33337974fbd6aed4c37dc76415b799af465a42f6..5e4b7107f6f370f950330cb57daf10093023713e 100644 (file)
@@ -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
index b69815437479b9bb4ad4cbdd52ba9c2198989118..f4711ff5907f84df13973db4753fd2aebc31dd33 100644 (file)
@@ -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"
     }