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>
Fri, 22 Dec 2017 07:43:21 +0000 (10:43 +0300)
commit06cbf7cb7b172c555ec76f90f32c04f346beeff4
tree08ceebff0d4b55cf8d477827694bcc26e2cf9f8c
parent5ace35641c00249fb2759a47211f1ea6b7525f92
Do not define AO_GCC_FORCE_HAVE_CAS for Clang 3.8+ (Aarch64)
(Cherry-pick commits 83fca68, baa9851 from 'master' branch.)

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):
Do not define if AO_CLANG_PREREQ(3, 8) (unless __APPLE_CC__).
src/atomic_ops/sysdeps/gcc/aarch64.h