]> 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>
Thu, 17 Nov 2016 22:14:23 +0000 (01:14 +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 993dd4263e505e43bc0e6a720270a729bb353309..a37ea71b8a9da575e3189d73d0749f3512fc80d1 100644 (file)
 #   include "atomic_ops/sysdeps/gcc/nios2.h"
 # endif /* __nios2__ */
 # 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__)