From 23a75657ad37b290eb7df6ce34de22b1c614f5d6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 18 Jun 2004 15:41:47 +0000 Subject: * 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). --- ld/testsuite/ld-selective/selective.exp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ld/testsuite/ld-selective') 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" } -- cgit v1.1