]> granicus.if.org Git - libatomic_ops/commitdiff
Undefine internal macros that are defined solely for generic.h
authorIvan Maidanski <ivmai@mail.ru>
Wed, 23 Nov 2016 17:02:39 +0000 (20:02 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 23 Nov 2016 17:30:57 +0000 (20:30 +0300)
(fix commits 03a0465f3c52619c66f7a4d3)

* src/atomic_ops/sysdeps/gcc/aarch64.h (AO_SKIPATOMIC_double_load,
AO_SKIPATOMIC_double_load_acquire): Undefine at the end of file.
* src/atomic_ops/sysdeps/gcc/arm.h (AO_SKIPATOMIC_ANY_and_ANY,
AO_SKIPATOMIC_ANY_or_ANY, AO_SKIPATOMIC_ANY_xor_ANY,
AO_SKIPATOMIC_char_store, AO_SKIPATOMIC_char_store_release,
AO_SKIPATOMIC_int_store, AO_SKIPATOMIC_int_store_release,
AO_SKIPATOMIC_short_store, AO_SKIPATOMIC_short_store_release,
AO_SKIPATOMIC_store, AO_SKIPATOMIC_store_release): Likewise.

src/atomic_ops/sysdeps/gcc/aarch64.h
src/atomic_ops/sysdeps/gcc/arm.h

index 11bc6c5719184ed52536ed92b39b4220a9fde694..97d6ea6bc6d4891d9ff867d2f84dfecea762f552 100644 (file)
 #endif
 
 #include "generic.h"
+
+#undef AO_SKIPATOMIC_double_load
+#undef AO_SKIPATOMIC_double_load_acquire
index 633ed3b5e506b222b37fa01ece44a4fc8c821c01..28ba9ccd5b9a6036d6215a9c49a1a7c89ccafb02 100644 (file)
@@ -723,6 +723,17 @@ AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val)
 
 #undef AO_BR_ALIGN
 #undef AO_MASK_PTR
+#undef AO_SKIPATOMIC_ANY_and_ANY
+#undef AO_SKIPATOMIC_ANY_or_ANY
+#undef AO_SKIPATOMIC_ANY_xor_ANY
+#undef AO_SKIPATOMIC_char_store
+#undef AO_SKIPATOMIC_char_store_release
+#undef AO_SKIPATOMIC_int_store
+#undef AO_SKIPATOMIC_int_store_release
+#undef AO_SKIPATOMIC_short_store
+#undef AO_SKIPATOMIC_short_store_release
+#undef AO_SKIPATOMIC_store
+#undef AO_SKIPATOMIC_store_release
 #undef AO_THUMB_GO_ARM
 #undef AO_THUMB_RESTORE_MODE
 #undef AO_THUMB_SWITCH_CLOBBERS