diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-12-04 18:32:52 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-12-04 18:32:52 +0000 |
commit | 1d62840f4f1190a4251d07ec023dcf91993d1cca (patch) | |
tree | 9e97af3df20496d24fab13fd6e37da387b0234fe | |
parent | 8233c3931771591ee6dd4e81b2365d92304ef402 (diff) | |
download | gdb-1d62840f4f1190a4251d07ec023dcf91993d1cca.zip gdb-1d62840f4f1190a4251d07ec023dcf91993d1cca.tar.gz gdb-1d62840f4f1190a4251d07ec023dcf91993d1cca.tar.bz2 |
Don't pass -fvtable-gc to GCC 3.4.0 or above.
2010-12-04 H.J. Lu <hongjiu.lu@intel.com>
* ld-selective/selective.exp: Don't pass -fvtable-gc to GCC
3.4.0 or above.
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-selective/selective.exp | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 23b31e6..f0d81d3 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2010-12-04 H.J. Lu <hongjiu.lu@intel.com> + * ld-selective/selective.exp: Don't pass -fvtable-gc to GCC + 3.4.0 or above. + +2010-12-04 H.J. Lu <hongjiu.lu@intel.com> + * ld-elfvers/vers.exp: Replace -export-dynamic with -Wl,-export-dynamic. diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index b563d35..81870c2 100644 --- a/ld/testsuite/ld-selective/selective.exp +++ b/ld/testsuite/ld-selective/selective.exp @@ -60,7 +60,7 @@ set seltests { } set cflags "-w -O -ffunction-sections -fdata-sections" -set cxxflags "-fvtable-gc -fno-exceptions -fno-rtti" +set cxxflags "-fno-exceptions -fno-rtti" set ldflags "--gc-sections -Bstatic" if [istarget mips*-*] { @@ -106,14 +106,16 @@ foreach testitem $seltests { # It's either C or C++ at the moment. if { $testtype == "C++" } { - set testflags "$cflags $cxxflags" set compiler "$CXX" # 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] { + set testflags "$cflags $cxxflags" setup_xfail {*-*-*} + } else { + set testflags "$cflags $cxxflags -fvtable-gc" } } else { set testflags "$cflags" |