]> granicus.if.org Git - libatomic_ops/commit
Do not force GCC atomic intrinsics usage if AO_PREFER_BUILTIN_ATOMICS
authorIvan Maidanski <ivmai@mail.ru>
Thu, 21 Apr 2016 07:59:18 +0000 (10:59 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 21 Apr 2016 07:59:18 +0000 (10:59 +0300)
commit49b9286a8c304283ece186f1fabb27b587e7a9a6
treeae26aad45adeca9d136243746b7e0810e787bb60
parent30c0456f7568b4b9e6212f1a05b863dd18c4e471
Do not force GCC atomic intrinsics usage if AO_PREFER_BUILTIN_ATOMICS

The macro should only prevent usage of assembly completely but only
if at least some of GCC atomic intrinsics are available.

* src/atomic_ops/sysdeps/gcc/arm.h (AO_PREFER_BUILTIN_ATOMICS): Remove
from the condition whether to include generic.h.
* src/atomic_ops/sysdeps/gcc/mips.h (AO_PREFER_BUILTIN_ATOMICS):
Likewise.
src/atomic_ops/sysdeps/gcc/arm.h
src/atomic_ops/sysdeps/gcc/mips.h