From 3c88b88a815cd8f35240d11db217462799c44a6c Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Mon, 1 Sep 2014 14:43:13 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 3 +++ 2 files changed, 8 insertions(+) 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 + + * 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 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__) \ -- 2.7.4