diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-12-29 02:02:27 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-12-29 02:02:27 +0300 |
commit | 729d6b7965cf0b419c1fb65ac99bc740ddeee56b (patch) | |
tree | 12ed0d08fa94ed545d246b7506ff65c0be9e3728 | |
parent | 7a6a7cc4820107dd768a47eaf20c0ec8fa918d2d (diff) | |
download | libatomic_ops-729d6b7965cf0b419c1fb65ac99bc740ddeee56b.tar.gz |
Fix AO_stack build failure on OS X 10.7 because of missing CAS (x86)
(fix commit 7a6a7cc)
Issue #23 (libatomic_ops).
* src/atomic_ops/sysdeps/gcc/x86.h [AO_GCC_ATOMIC_TEST_AND_SET
&& __APPLE_CC__] (AO_GCC_FORCE_HAVE_CAS): Define also for arch i386;
refine comment.
-rw-r--r-- | src/atomic_ops/sysdeps/gcc/x86.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/x86.h b/src/atomic_ops/sysdeps/gcc/x86.h index 4f81773..8d268b6 100644 --- a/src/atomic_ops/sysdeps/gcc/x86.h +++ b/src/atomic_ops/sysdeps/gcc/x86.h @@ -43,7 +43,10 @@ /* As of Apple clang-600 (based on LLVM 3.5svn), it has some bug in */ /* double-wide CAS implementation for x64 target. */ # define AO_SKIPATOMIC_double_compare_and_swap_ANY - /* OS X 10.7 clang-425/x64 lacks __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n */ +# endif + +# if defined(__APPLE_CC__) + /* OS X 10.7 clang-425 lacks __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n */ /* predefined macro (unlike e.g. OS X 10.11 clang-703). */ # define AO_GCC_FORCE_HAVE_CAS # endif |