aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert S. Edmonds <edmonds@debian.org>2014-09-13 19:31:12 -0400
committerRobert S. Edmonds <edmonds@debian.org>2014-09-13 19:31:12 -0400
commitd24b987c1485fedc4b8e57cb7ec7760ce598501b (patch)
tree0eb5a6e0d82551d5e4a387ea49125c89a15ae07c
parentedc5994525c79cd1919859a370837a6ff7c8e308 (diff)
downloadprotobuf-d24b987c1485fedc4b8e57cb7ec7760ce598501b.tar.gz
protobuf-d24b987c1485fedc4b8e57cb7ec7760ce598501b.tar.bz2
protobuf-d24b987c1485fedc4b8e57cb7ec7760ce598501b.zip
Remove GOOGLE_PROTOBUF_ARCH_PPC
The macro GOOGLE_PROTOBUF_ARCH_PPC is not used anywhere in the protobuf source; there is no Power-specific atomics implementation, etc. Funnily enough, the macro __ppc__ is not actually defined on 32-bit Power on GCC/Linux, according to the following webpage: http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_using_compiler_predefined_macros#POWER and verified on a 32-bit Debian sid 'powerpc' chroot: (sid_powerpc-dchroot)edmonds@partch:~$ gcc -dM -E - < /dev/null | grep -c __ppc__ 0 (sid_powerpc-dchroot)edmonds@partch:~$ gcc -dM -E - < /dev/null | grep -c __LP64__ 0
-rw-r--r--src/google/protobuf/stubs/platform_macros.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/google/protobuf/stubs/platform_macros.h b/src/google/protobuf/stubs/platform_macros.h
index 1705b416..4cc46df4 100644
--- a/src/google/protobuf/stubs/platform_macros.h
+++ b/src/google/protobuf/stubs/platform_macros.h
@@ -62,9 +62,6 @@
#endif
#elif defined(__pnacl__)
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
-#elif defined(__ppc__)
-#define GOOGLE_PROTOBUF_ARCH_PPC 1
-#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
#elif defined(__GNUC__) && \
(((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ > 4))
// We fallback to the generic GCC >= 4.7 implementation in atomicops.h