Fix test_stack failure if AO_PREFER_BUILTIN_ATOMICS (GCC/Aarch64)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 6 Dec 2017 21:00:18 +0000 (00:00 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 22 Dec 2017 07:44:53 +0000 (10:44 +0300)
commit66eabd882fb9545d2d941d5ea21631274d78959e
treebd25f3401e0546306ac65e291295600e52eb9a20
parentfd9374bb4b4e348f9e58b0f9e7647d9a7179c328
Fix test_stack failure if AO_PREFER_BUILTIN_ATOMICS (GCC/Aarch64)

As of gcc-5.4/aarch64, not all of the built-in double-word atomics
are implemented correctly.

* src/atomic_ops/sysdeps/gcc/aarch64.h [!__clang__
|| AO_AARCH64_ASM_LOAD_STORE_CAS] (AO_double_load,
AO_double_load_acquire, AO_double_store, AO_double_store_release,
AO_double_compare_and_swap, AO_double_compare_and_swap_acquire,
AO_double_compare_and_swap_release, AO_double_compare_and_swap_full):
Define (asm-based implementation) even if AO_PREFER_BUILTIN_ATOMICS
or AO_THREAD_SANITIZER; update comment.
src/atomic_ops/sysdeps/gcc/aarch64.h