]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target-supports.exp (check_effective_target_avx): Early out if not x86 to prevent...
authorMike Stump <mikestump@comcast.net>
Mon, 19 May 2014 15:32:22 +0000 (15:32 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Mon, 19 May 2014 15:32:22 +0000 (15:32 +0000)
* lib/target-supports.exp (check_effective_target_avx): Early out
if not x86 to prevent x86 flags on non-x86 targets.

From-SVN: r210616

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index bb657c1b5a917b9f54bdc7a5228b834cd441acb8..731ccf7731ef065af3123259602bb27838c9d981 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-19  Mike Stump  <mikestump@comcast.net>
+
+       * lib/target-supports.exp (check_effective_target_avx): Early out
+       if not x86 to prevent x86 flags on non-x86 targets.
+
 2014-05-19  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/61221
index 8aafc935a98a54629775abf1439bc33a0d7aac3c..1f921537757a64e37db1f615d627d5c6281d8318 100644 (file)
@@ -5318,6 +5318,9 @@ proc check_effective_target_avx512f { } {
 # Return 1 if avx instructions can be compiled.
 
 proc check_effective_target_avx { } {
+    if { !([istarget x86_64-*-*] || [istarget i?86-*-*]) } {
+       return 0
+    }
     return [check_no_compiler_messages avx object {
        void _mm256_zeroall (void)
        {