From 7d11e4d6320fa4ec6ac4401eb5b152d5c74d166f Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Wed, 14 Jan 2015 14:03:10 +0000 Subject: [PATCH] Fix neon test fails on non-neon configs. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_arm_neon_ok_nocache): Don't try to test Neon on ARM architures before v7. From-SVN: r219602 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/target-supports.exp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3df2a2c7185..c630627d43c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-01-14 Andrew Stubbs + + * lib/target-supports.exp + (check_effective_target_arm_neon_ok_nocache): Don't try to test Neon + on ARM architures before v7. + 2015-01-14 Andrew MacLeod PR middle-end/59448 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 61bff53754b..2395ac4250f 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2592,6 +2592,11 @@ proc check_effective_target_arm_neon_ok_nocache { } { if { [check_no_compiler_messages_nocache arm_neon_ok object { #include "arm_neon.h" int dummy; + /* Avoid the case where a test adds -mfpu=neon, but the toolchain is + configured for -mcpu=arm926ej-s, for example. */ + #if __ARM_ARCH < 7 + #error Architecture too old for NEON. + #endif } "$flags"] } { set et_arm_neon_flags $flags return 1 -- 2.30.2