FTBFS s390x: Use jit/none/AtomicOperations-sparc.h on s390x
authorCarsten Schoenert <c.schoenert@t-online.de>
Wed, 21 Jun 2017 16:41:53 +0000 (18:41 +0200)
committerPeter Micheal Green <plugwash@raspbian.org>
Fri, 18 Jan 2019 23:40:33 +0000 (23:40 +0000)
s390x needs also to use the atomic operation instructions that are also
used on sparc as they are generic enough.

Gbp-Pq: Topic porting-s390x
Gbp-Pq: Name FTBFS-s390x-Use-jit-none-AtomicOperations-sparc.h-on-s390.patch

js/src/jit/AtomicOperations.h

index a8970b0d37e182e52595aa224cedd195da1a8940..1cf22bfc103d56341edb8c02b482fb5b46b2d4f2 100644 (file)
@@ -364,6 +364,9 @@ AtomicOperations::isLockfreeJS(int32_t size)
 #elif defined(__aarch64__)
 # if defined(__clang__) || defined(__GNUC__)
 #  include "jit/arm64/AtomicOperations-arm64.h"
+# elif defined(__s390__)
+  // The sparc file is more or less generic and works on s390x.
+#  include "jit/none/AtomicOperations-sparc.h"
 # else
 #  error "No AtomicOperations support for this platform+compiler combination"
 # endif