summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-12-06 00:51:51 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-12-06 00:51:51 +0300
commit27e8763d488e527c6a785239dd42192a9fcab71c (patch)
tree6bf065dc8c7bcafe0d58c80dfd1aa710fe2df57c /src
parent29b71bdee43aa9894be3fc9e7c2b1d8622891783 (diff)
downloadlibatomic_ops-27e8763d488e527c6a785239dd42192a9fcab71c.tar.gz
Undefine AO_ARM_HAVE_* private macros after their usage
(fix of commit 9b7cecba) * src/atomic_ops/sysdeps/gcc/arm.h (AO_ARM_HAVE_DMB, AO_ARM_HAVE_LDREX, AO_ARM_HAVE_LDREXBH, AO_ARM_HAVE_LDREXD, AO_ARM_HAVE_SWP): Undefine at the end of the file.
Diffstat (limited to 'src')
-rw-r--r--src/atomic_ops/sysdeps/gcc/arm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/arm.h b/src/atomic_ops/sysdeps/gcc/arm.h
index b99a1ca..2ae7658 100644
--- a/src/atomic_ops/sysdeps/gcc/arm.h
+++ b/src/atomic_ops/sysdeps/gcc/arm.h
@@ -719,6 +719,11 @@ AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val)
#endif /* AO_GCC_ATOMIC_TEST_AND_SET */
+#undef AO_ARM_HAVE_DMB
+#undef AO_ARM_HAVE_LDREX
+#undef AO_ARM_HAVE_LDREXBH
+#undef AO_ARM_HAVE_LDREXD
+#undef AO_ARM_HAVE_SWP
#undef AO_BR_ALIGN
#undef AO_MASK_PTR
#undef AO_SKIPATOMIC_ANY_and_ANY