From 7193487fa8d496a1df20eb8ea5007e9b43ac07cb Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 7 Jul 2020 12:41:55 +0930 Subject: Use is_xcoff_format in ld testsuite * testsuite/ld-checks/checks.exp: Use is_xcoff_format. * testsuite/ld-powerpc/powerpc.exp: Likewise. * testsuite/ld-scripts/print-memory-usage.exp: Likewise. * testsuite/ld-srec/srec.exp: Likewise. * testsuite/ld-undefined/require-defined.exp: Likewise. * testsuite/ld-scripts/expr2.d: Likewise. * testsuite/ld-scripts/section-match-1.d: Only run for ELF. * testsuite/ld-elfvers/vers.exp: Delete dead code. * testsuite/ld-elfvsb/elfvsb.exp: Likewise. * testsuite/ld-elfweak/elfweak.exp: Likewise. --- ld/testsuite/ld-srec/srec.exp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ld/testsuite/ld-srec') diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp index 69570a8..13fc4e1 100644 --- a/ld/testsuite/ld-srec/srec.exp +++ b/ld/testsuite/ld-srec/srec.exp @@ -384,7 +384,9 @@ setup_xfail "mips*-*-irix5*" "mips*-*-irix6*" "mips*-*-linux*" # The S-record linker doesn't do the magic TOC handling that XCOFF # linkers do. -setup_xfail "*-*-aix*" "*-*-xcoff*" +if [is_xcoff_format] { + setup_xfail *-*-* +} # The S-record linker is not supported for ARC. setup_xfail "arc*-*-*" @@ -454,7 +456,9 @@ if ![ld_compile "$CXX $CXXFLAGS -fno-exceptions" $srcdir/$subdir/sr3.cc tmpdir/s # See above. setup_xfail "i*86-*-aout*" setup_xfail "mips*-*-irix5*" "mips*-*-irix6*" "mips*-*-linux*" -setup_xfail "*-*-aix*" "*-*-xcoff*" +if [is_xcoff_format] { + setup_xfail *-*-* +} setup_xfail "arc*-*-*" setup_xfail "arm*-*-*" setup_xfail "v850*-*-elf" -- cgit v1.1