]> granicus.if.org Git - libatomic_ops/commitdiff
Fix powerpc detection on AIX (gcc)
authorTobias Leich <email@froggs.de>
Thu, 17 Nov 2016 22:05:42 +0000 (01:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 26 Nov 2016 18:37:41 +0000 (21:37 +0300)
GCC/powerpc-ibm-aix does not define any of __powerpc__, __ppc__,
__PPC__, __powerpc64__, __ppc64__; but it does define _ARCH_PPC (and
_POWER).

* src/atomic_ops.h [_ARCH_PPC]: Include gcc/powerpc.h.

src/atomic_ops.h

index 234d7fb4cf558579dd460839fbc8b8c0285e4a5b..a221ddc0a2b2a9688059c449084826b6627f6f72 100644 (file)
 #   include "atomic_ops/sysdeps/gcc/m68k.h"
 # endif /* __m68k__ */
 # if defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) \
-     || defined(__powerpc64__) || defined(__ppc64__)
+     || defined(__powerpc64__) || defined(__ppc64__) \
+     || defined(_ARCH_PPC)
 #   include "atomic_ops/sysdeps/gcc/powerpc.h"
 # endif /* __powerpc__ */
 # if defined(__aarch64__)