mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-11 11:23:35 +08:00
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.
This commit is contained in:
parent
8233c39317
commit
1d62840f4f
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user