]> gcc.gnu.org Git - gcc.git/commitdiff
abi-avx.exp: Link with gcc.target/i386/clearcap.map if supported.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 3 Sep 2010 14:57:57 +0000 (14:57 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 3 Sep 2010 14:57:57 +0000 (14:57 +0000)
* gcc.target/x86_64/abi/avx/abi-avx.exp: Link with
gcc.target/i386/clearcap.map if supported.

From-SVN: r163827

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/x86_64/abi/avx/abi-avx.exp

index 3cdb32f4208f4071c4b36dc5ed5b314baf767997..213d02cb7991517f9968ee65f60979e15e761f70 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * gcc.target/x86_64/abi/avx/abi-avx.exp: Link with
+       gcc.target/i386/clearcap.map if supported.
+
 2010-09-03  Michael Matz  <matz@suse.de>
 
        PR middle-end/45415
index e5561283d304a268fc65e508b6673bbd8543fb8c..8733d4e0af73ed26b7aa746fbb733ecadbe96438 100644 (file)
@@ -28,9 +28,20 @@ if { (![istarget x86_64-*-*] && ![istarget i?86-*-*])
 }
 
 
+# If the linker used understands -M <mapfile>, 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]} {
This page took 0.089676 seconds and 5 git commands to generate.