This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][ARM] Enable arm target in ira-shrinkwrap-prep* testcases
- From: Andreas Schwab <schwab at suse dot de>
- To: Jiong Wang <jiong dot wang at arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 24 Jul 2014 13:03:45 +0200
- Subject: Re: [PATCH][ARM] Enable arm target in ira-shrinkwrap-prep* testcases
- Authentication-results: sourceware.org; auth=none
- References: <53C3ACBE dot 7080302 at arm dot com>
Jiong Wang <jiong.wang@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, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."