aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@codesourcery.com>2014-09-01 14:43:13 +0000
committerMaciej W. Rozycki <macro@gcc.gnu.org>2014-09-01 14:43:13 +0000
commit3c88b88a815cd8f35240d11db217462799c44a6c (patch)
tree23ccf993c868ba0b2eb0b3f412faf7604292ae72 /gcc
parenteddcad13f9143b38ed45fcdce364316da6701c7c (diff)
downloadgcc-3c88b88a815cd8f35240d11db217462799c44a6c.zip
gcc-3c88b88a815cd8f35240d11db217462799c44a6c.tar.gz
gcc-3c88b88a815cd8f35240d11db217462799c44a6c.tar.bz2
target-supports.exp (check_effective_target_arm_cortex_m): Return right away if !arm*-*-*.
* lib/target-supports.exp (check_effective_target_arm_cortex_m): Return right away if !arm*-*-*. From-SVN: r214797
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/target-supports.exp3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 46ca330..89ea6c5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * lib/target-supports.exp (check_effective_target_arm_cortex_m):
+ Return right away if !arm*-*-*.
+
2014-09-01 Bernd Schmidt <bernds@codesourcery.com>
* gcc.c-torture/unsorted/386.c: Move to ...
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 92c3092..088ebf0 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -2819,6 +2819,9 @@ proc check_effective_target_arm_cond_exec { } {
# Return 1 if this is an ARM cortex-M profile cpu
proc check_effective_target_arm_cortex_m { } {
+ if { ![istarget arm*-*-*] } {
+ return 0
+ }
return [check_no_compiler_messages arm_cortex_m assembly {
#if !defined(__ARM_ARCH_7M__) \
&& !defined (__ARM_ARCH_7EM__) \