From 6153418dfbb3d5f847af33946e5613b14d2338ea Mon Sep 17 00:00:00 2001 From: Sebastiaan Couwenberg Date: Tue, 24 Mar 2020 18:20:00 +0000 Subject: [PATCH] Add support for s390x architecture. 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/google/protobuf/stubs/platform_macros.h b/src/google/protobuf/stubs/platform_macros.h index ce1b1e3..f5d77ef 100644 --- a/src/google/protobuf/stubs/platform_macros.h +++ b/src/google/protobuf/stubs/platform_macros.h @@ -79,6 +79,13 @@ #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 -- 2.30.2