Blame SOURCES/qtscript-everywhere-src-5.12.1-s390.patch

3db3a3
diff -up qtscript-everywhere-src-5.12.1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h.s390 qtscript-everywhere-src-5.12.1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
3db3a3
--- qtscript-everywhere-src-5.12.1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h.s390	2019-01-09 06:59:11.000000000 -0600
3db3a3
+++ qtscript-everywhere-src-5.12.1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h	2019-02-15 08:57:27.684231337 -0600
4a1734
@@ -226,6 +226,18 @@
4a1734
 #define WTF_CPU_SPARC 1
4a1734
 #endif
4a1734
 
4a1734
+/* CPU(S390X) - S390 64-bit */
4a1734
+#if defined(__s390x__)
4a1734
+#define WTF_CPU_S390X 1
4a1734
+#define WTF_CPU_BIG_ENDIAN 1
4a1734
+#endif
4a1734
+
4a1734
+/* CPU(S390) - S390 32-bit */
4a1734
+#if defined(__s390__) && !defined(__s390x__)
4a1734
+#define WTF_CPU_S390 1
4a1734
+#define WTF_CPU_BIG_ENDIAN 1
4a1734
+#endif
4a1734
+
4a1734
 /* CPU(X86) - i386 / x86 32-bit */
4a1734
 #if   defined(__i386__) \
4a1734
     || defined(i386)     \
3db3a3
@@ -960,7 +972,7 @@
4a1734
 #if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64)
3db3a3
 #if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64) || CPU(RISCV64)
4a1734
 #define WTF_USE_JSVALUE64 1
3db3a3
-#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32)
3db3a3
+#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32) || CPU(S390X)
4a1734
 #define WTF_USE_JSVALUE32 1
4a1734
 #elif OS(WINDOWS) && COMPILER(MINGW)
4a1734
 /* Using JSVALUE32_64 causes padding/alignement issues for JITStubArg