From: Maciej W. Rozycki Date: Mon, 1 Sep 2014 14:43:13 +0000 (+0000) Subject: target-supports.exp (check_effective_target_arm_cortex_m): Return right away if ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c88b88a815cd8f35240d11db217462799c44a6c;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 46ca3301208..89ea6c56419 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-01 Maciej W. Rozycki + + * lib/target-supports.exp (check_effective_target_arm_cortex_m): + Return right away if !arm*-*-*. + 2014-09-01 Bernd Schmidt * 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 92c30926897..088ebf0a695 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__) \