Add support for s390x architecture.
authorSebastiaan Couwenberg <sebastic@xs4all.nl>
Tue, 4 Apr 2023 15:09:31 +0000 (16:09 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Tue, 4 Apr 2023 15:09:31 +0000 (16:09 +0100)
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835302
Bug-Upstream: https://github.com/google/protobuf/issues/2002
Origin: https://github.com/ibmruntimes/v8z

Based on port of Google V8 JavaScript engine to z Systems

Gbp-Pq: Name s390x.patch

src/google/protobuf/stubs/platform_macros.h

index c3a64dd2b38e6daa0b7546ab4febb46cab3a1ec9..0aa4b9f04936ea5da5a34086647e0260551dca77 100644 (file)
 #elif defined(__PPC__)
 #define GOOGLE_PROTOBUF_ARCH_PPC 1
 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
+#elif defined(__s390__) || defined(__s390x__)
+#define GOOGLE_PROTOBUF_ARCH_S390 1
+#if defined(__s390x__)
+#define GOOGLE_PROTOBUF_ARCH_64_BIT 1
+#else
+#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
+#endif
 #elif defined(__GNUC__)
 # if (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ > 4))
 // We fallback to the generic Clang/GCC >= 4.7 implementation in atomicops.h