Do not use JIT on big endian architectures
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Fri, 10 Oct 2014 12:50:18 +0000 (14:50 +0200)
committerFelix Geyer <fgeyer@debian.org>
Wed, 1 Apr 2015 17:44:29 +0000 (17:44 +0000)
All the JIT implementations targets the little-endian versions of ARM,
MIPS and SH4 respectively. So in case anyone builds on those platforms
we should not enable JIT.

Task-number: QTBUG-41896
Change-Id: I5be167511e2c3eac6c63e603b82da84fb6b29eaa
Reviewed-by: Julien Brianceau <jbriance@cisco.com>
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Gbp-Pq: Name do_not_use_jit_on_big_endian_machines.patch

Source/WTF/wtf/Platform.h

index 4594ec85414959b16d8d7adf3d11d64bdde929d2..eabd3dd91db2d716f847e4d92ef03207958fca15 100644 (file)
 /* CPU(SH4) - SuperH SH-4 */
 #if defined(__SH4__)
 #define WTF_CPU_SH4 1
+#ifdef __BIG_ENDIAN__
+#define WTF_CPU_BIG_ENDIAN 1
+#endif
 #endif
 
 /* CPU(SPARC32) - SPARC 32-bit */
 #define ENABLE_JIT 0
 #endif
 
+/* All the current JIT implementations target little-endian */
+#if CPU(BIG_ENDIAN)
+#define ENABLE_JIT 0
+#endif
+
 /* Disable JIT on x32 */
 #if CPU(X32)
 #define ENABLE_JIT 0