]> granicus.if.org Git - libatomic_ops/commitdiff
Workaround misspelling in GCC to detect ARMv6KZ platform
authorMikael Urankar <mikael.urankar@gipsa-lab.grenoble-inp.fr>
Mon, 19 Jun 2017 08:13:14 +0000 (10:13 +0200)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 20 Jun 2017 09:21:18 +0000 (12:21 +0300)
Issue #26 (libatomic_ops).

Due to a misspelling in GCC, the check for the ARMv6KZ platform
uses ARM_ARCH_6ZK macro instead of ARM_ARCH_6KZ.

* src/atomic_ops/sysdeps/gcc/arm.h (AO_ARM_HAVE_DMB): Do not define
if __ARM_ARCH_6KZ__.

src/atomic_ops/sysdeps/gcc/arm.h

index 8ad4be2ad911e83c1ec62b6e85ddc9bf1aa754c8..8a65e2aaffb9ea4dace74158e24a8fbe9d30e025 100644 (file)
@@ -73,7 +73,8 @@
 # if !defined(__ARM_ARCH_6__) && !defined(__ARM_ARCH_6J__) \
      && !defined(__ARM_ARCH_6T2__) && !defined(__ARM_ARCH_6Z__) \
      && !defined(__ARM_ARCH_6ZT2__)
-#   if !defined(__ARM_ARCH_6K__) && !defined(__ARM_ARCH_6ZK__)
+#   if !defined(__ARM_ARCH_6K__) && !defined(__ARM_ARCH_6KZ__) \
+       && !defined(__ARM_ARCH_6ZK__)
       /* DMB is present in ARMv6M and ARMv7+.   */
 #     define AO_ARM_HAVE_DMB
 #   endif