Jiong Wang <jiong.w...@arm.com> writes: > gcc/testsuite/ > * gcc.dg/ira-shrinkwrap-prep-1.c (target): Add arm_nothumb > * gcc.dg/ira-shrinkwrap-prep-2.c (target): Add arm_nothumb > * gcc.dg/pr10474.c (target): Add arm_nothumb
arm_nothumb doesn't check for __arm__, so this enables it everywhere. Installed as obvious. Andreas. * lib/target-supports.exp (check_effective_target_arm_nothumb): Also check for __arm__. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 33672f2..1dc0f44 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2262,7 +2262,7 @@ proc check_effective_target_aarch64_little_endian { } { }] } -# Return 1 is this is an arm target using 32-bit instructions +# Return 1 if this is an arm target using 32-bit instructions proc check_effective_target_arm32 { } { return [check_no_compiler_messages arm32 assembly { #if !defined(__arm__) || (defined(__thumb__) && !defined(__thumb2__)) @@ -2271,10 +2271,10 @@ proc check_effective_target_arm32 { } { }] } -# Return 1 is this is an arm target not using Thumb +# Return 1 if this is an arm target not using Thumb proc check_effective_target_arm_nothumb { } { return [check_no_compiler_messages arm_nothumb assembly { - #if (defined(__thumb__) || defined(__thumb2__)) + #if !defined(__arm__) || (defined(__thumb__) || defined(__thumb2__)) #error FOO #endif }] -- 2.0.2 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."