]> granicus.if.org Git - libatomic_ops/commitdiff
Undefine AO_ARM_HAVE_* private macros after their usage
authorIvan Maidanski <ivmai@mail.ru>
Wed, 5 Dec 2018 21:51:51 +0000 (00:51 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 10 Dec 2018 21:43:14 +0000 (00:43 +0300)
(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.

src/atomic_ops/sysdeps/gcc/arm.h

index b99a1cad5fbfb83f3e53eb3fc2693091641bc16b..2ae76588f4e1eec60a4a63dcb061ab1e77b652bd 100644 (file)
@@ -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