From 4a89cbfcf55d59f3226bd06b6439d4b2833ea736 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 20 Oct 2011 12:34:20 +0000 Subject: [PATCH] * ld-selective/selective.exp: Use check_gc_sections_available. Remove redundant xfails. * ld-selective/sel-dump.exp: Likewise. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-selective/sel-dump.exp | 5 +---- ld/testsuite/ld-selective/selective.exp | 16 +--------------- 3 files changed, 8 insertions(+), 19 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 26ea036975a..fc9caf927a5 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-10-20 Alan Modra + + * ld-selective/selective.exp: Use check_gc_sections_available. + Remove redundant xfails. + * ld-selective/sel-dump.exp: Likewise. + 2011-10-19 Alan Modra * ld-elf/elf.exp: Move test for shared lib support.. diff --git a/ld/testsuite/ld-selective/sel-dump.exp b/ld/testsuite/ld-selective/sel-dump.exp index c78bd6ea034..d9ac24b68d7 100644 --- a/ld/testsuite/ld-selective/sel-dump.exp +++ b/ld/testsuite/ld-selective/sel-dump.exp @@ -20,7 +20,7 @@ # Test for ELF here, so we don't have to qualify on ELF specifically # in every .d-file. -if ![is_elf_format] { +if { ![is_elf_format] || ![check_gc_sections_available] } { return } @@ -28,8 +28,5 @@ set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]] for { set i 0 } { $i < [llength $test_list] } { incr i } { # We need to strip the ".d", but can leave the dirname. verbose [file rootname [lindex $test_list $i]] - setup_xfail "am33*-*" "arc*-*" "d30v*-*" "dlx*-*" - setup_xfail "hppa*64-*-*" "i370*-*" "i860*-*" "i960*-*" "ia64*-*" - setup_xfail "m88*-*" "mn10200-*" "mep-*" "or32-*" "pj-*" run_dump_test [file rootname [lindex $test_list $i]] } diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index d4d30ecc9ea..f328441793e 100644 --- a/ld/testsuite/ld-selective/selective.exp +++ b/ld/testsuite/ld-selective/selective.exp @@ -23,19 +23,7 @@ # Make sure that constructors are handled correctly. # Only ELF based ports support selective linking -if ![is_elf_format] { - return -} - -# These targets do not support selective linking -if {[istarget "am33*-*-*"] || - [istarget "arc-*-*"] || [istarget "d30v-*-*"] || - [istarget "dlx-*-*"] || [istarget "hppa*64*-*-*"] || - [istarget "i370-*-*"] || [istarget "i860-*-*"] || - [istarget "i960-*-*"] || [istarget "ia64-*-*"] || - [istarget "m88*-*-*"] || [istarget "mn10200-*-*"] || - [istarget "mep-*-*"] || [istarget "or32-*-*"] || - [istarget "pj*-*-*"]} { +if { ![is_elf_format] || ![check_gc_sections_available] } { return } @@ -101,8 +89,6 @@ foreach testitem $seltests { foreach xfail_target $xfails { setup_xfail $xfail_target } - setup_xfail "arc*-*" "d30v*-*" "dlx*-*" "i370*-*" "i860*-*" - setup_xfail "i960*-*" "mn10200-*" "or32-*" "pj-*" # It's either C or C++ at the moment. if { $testtype == "C++" } { -- 2.30.2