From 601d5a25b201fe771545c2ff06a29c63b5b25cab Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Fri, 3 Sep 2010 14:57:57 +0000 Subject: [PATCH] abi-avx.exp: Link with gcc.target/i386/clearcap.map if supported. * gcc.target/x86_64/abi/avx/abi-avx.exp: Link with gcc.target/i386/clearcap.map if supported. From-SVN: r163827 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/x86_64/abi/avx/abi-avx.exp | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3cdb32f..213d02c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-09-03 Rainer Orth + + * gcc.target/x86_64/abi/avx/abi-avx.exp: Link with + gcc.target/i386/clearcap.map if supported. + 2010-09-03 Michael Matz PR middle-end/45415 diff --git a/gcc/testsuite/gcc.target/x86_64/abi/avx/abi-avx.exp b/gcc/testsuite/gcc.target/x86_64/abi/avx/abi-avx.exp index e556128..8733d4e 100644 --- a/gcc/testsuite/gcc.target/x86_64/abi/avx/abi-avx.exp +++ b/gcc/testsuite/gcc.target/x86_64/abi/avx/abi-avx.exp @@ -28,9 +28,20 @@ if { (![istarget x86_64-*-*] && ![istarget i?86-*-*]) } +# If the linker used understands -M , pass it to clear hardware +# capabilities set by the Sun assembler. +set flags "" +set clearcap_ldflags "-Wl,-M,$srcdir/gcc.target/i386/clearcap.map" + +if [check_no_compiler_messages mapfile executable { + int main (void) { return 0; } + } $clearcap_ldflags ] { + set flags $clearcap_ldflags +} + torture-init set-torture-options $C_TORTURE_OPTIONS -set additional_flags "-W -Wall -mavx" +set additional_flags "-W -Wall -mavx $flags" foreach src [lsort [glob -nocomplain $srcdir/$subdir/test_*.c]] { if {[runtest_file_p $runtests $src]} { -- 2.7.4