]> granicus.if.org Git - libatomic_ops/commit
Do not define AO_GCC_FORCE_HAVE_CAS for Clang 3.8+ (Aarch64)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 5 Dec 2017 07:41:39 +0000 (10:41 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 5 Dec 2017 07:50:04 +0000 (10:50 +0300)
commit46d43dc58691ee124f20a8d2300c8ea84c907632
tree9cad5d54f72c5a934a78c4732859091567f7010f
parentaa8fb7a6681de50dd4dd155933dac78150a7ac1a
Do not define AO_GCC_FORCE_HAVE_CAS for Clang 3.8+ (Aarch64)
(fix commit 83fca68)

Clang now defines __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n macros (so,
the workaround is not needed anymore).

* src/atomic_ops/sysdeps/gcc/aarch64.h (AO_GCC_FORCE_HAVE_CAS,
AO_GCC_HAVE_double_SYNC_CAS): Do not define if AO_CLANG_PREREQ(3, 8)
(unless __APPLE_CC__).
src/atomic_ops/sysdeps/gcc/aarch64.h