]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target-supports.exp (check_effective_target_arm_cortex_m): Return right away if ...
authorMaciej W. Rozycki <macro@codesourcery.com>
Mon, 1 Sep 2014 14:43:13 +0000 (14:43 +0000)
committerMaciej W. Rozycki <macro@gcc.gnu.org>
Mon, 1 Sep 2014 14:43:13 +0000 (14:43 +0000)
* lib/target-supports.exp (check_effective_target_arm_cortex_m):
Return right away if !arm*-*-*.

From-SVN: r214797

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

index 46ca33012086ee71c434ae7d54f78371ff7a111c..89ea6c56419c7f7054732566d5162c659525f047 100644 (file)
@@ -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 ...
index 92c30926897d6ccad2b16f4ec593bfce5caab0e0..088ebf0a695b9207a00597895c46af00fd27f34f 100644 (file)
@@ -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__) \