diff options
author | Nick Clifton <nickc@redhat.com> | 2004-06-18 15:41:47 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-06-18 15:41:47 +0000 |
commit | 23a75657ad37b290eb7df6ce34de22b1c614f5d6 (patch) | |
tree | b410613f682747ea9a54622e3f859ed8d4d4b49b /ld/testsuite/ld-selective | |
parent | cad48f8ed941582fae2acf284a23db5c8c448f70 (diff) | |
download | gdb-23a75657ad37b290eb7df6ce34de22b1c614f5d6.zip gdb-23a75657ad37b290eb7df6ce34de22b1c614f5d6.tar.gz gdb-23a75657ad37b290eb7df6ce34de22b1c614f5d6.tar.bz2 |
* ld-elfvsb/main.c: Ensure visibility_def and visibility_func are
actually referenced (gcc 3.4 eliminates comparisons of addresses
of global symbols with NULL).
* ld-selective/selective.exp: Suppress -fvtable-gc tests for gcc
3.4.0 and above, as this option and its functionality is no longer
supported, making these tests fail).
Diffstat (limited to 'ld/testsuite/ld-selective')
-rw-r--r-- | ld/testsuite/ld-selective/selective.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index ba1ebd9..6672911 100644 --- a/ld/testsuite/ld-selective/selective.exp +++ b/ld/testsuite/ld-selective/selective.exp @@ -89,6 +89,14 @@ foreach testitem $seltests { # It's either C or C++ at the moment. if { $testtype == "C++" } { set testflags "$cflags $cxxflags" + 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. + catch "exec -- $CC -dumpversion" version + if [regexp "^(\[1-9\]\[0-9\]+|\[4-9\]|3.(\[1-9\]\[0-9\]+|\[4-9\]))\\." $version] { + setup_xfail {*-*-*} + } + } } { set testflags "$cflags" } |