This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] S/390: Enable 64 bit atomic tests with -m31 -mzarch.
- From: Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Nov 2015 14:32:55 +0100
- Subject: [PATCH] S/390: Enable 64 bit atomic tests with -m31 -mzarch.
- Authentication-results: sourceware.org; auth=none
gcc/testsuite/ChangeLog:
2015-11-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* lib/target-supports.exp: Add s390 and s390x to the list of long
long atomic targets.
---
gcc/testsuite/lib/target-supports.exp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index acd786e..b0945c4 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -5348,6 +5348,7 @@ proc check_effective_target_sync_int_128_runtime { } {
# Return 1 if the target supports atomic operations on "long long".
#
# Note: 32bit x86 targets require -march=pentium in dg-options.
+# Note: 32bit s390 targets require -mzarch in dg-options.
proc check_effective_target_sync_long_long { } {
if { [istarget x86_64-*-*] || [istarget i?86-*-*])
@@ -5355,6 +5356,7 @@ proc check_effective_target_sync_long_long { } {
|| [istarget arm*-*-*]
|| [istarget alpha*-*-*]
|| ([istarget sparc*-*-*] && [check_effective_target_lp64])
+ || [istarget s390*-*-*]
|| [istarget spu-*-*] } {
return 1
} else {
--
2.3.0