summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Urankar <mikael.urankar@gipsa-lab.grenoble-inp.fr>2017-06-19 10:13:14 +0200
committerIvan Maidanski <ivmai@mail.ru>2017-09-20 11:11:59 +0300
commit61c39e184823f33a4a63d1af8e727406cb61ff68 (patch)
tree02b96dbf74b895de7aa7cae26ddc60fa9a0e7f35
parentd23e801b6ae2a96e407b6e2e5e09dd19bbd87f11 (diff)
downloadlibatomic_ops-61c39e184823f33a4a63d1af8e727406cb61ff68.tar.gz
Workaround misspelling in GCC to detect ARMv6KZ platform
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__.
-rw-r--r--src/atomic_ops/sysdeps/gcc/arm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/arm.h b/src/atomic_ops/sysdeps/gcc/arm.h
index e2db736..08d2368 100644
--- a/src/atomic_ops/sysdeps/gcc/arm.h
+++ b/src/atomic_ops/sysdeps/gcc/arm.h
@@ -58,7 +58,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