libphobos: core.atomic should have fallback when there's no libatomic.
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 20 Apr 2019 17:14:50 +0000 (17:14 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sat, 20 Apr 2019 17:14:50 +0000 (17:14 +0000)
commit0aa94749cbb73c4ff56a569fab2557b5f67cb31e
treefedb67de507eeb9933d91d1bb0e2a401dba4c752
parent1474a2e567653b9a1856b4cb28a64a8eeb3c7c9d
libphobos: core.atomic should have fallback when there's no libatomic.

libphobos/ChangeLog:

2019-04-20  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/89293
* libdruntime/core/atomic.d (casImpl): Remove static assert for
GNU_Have_Atomics, add static path to handle missing atomic support.
(atomicLoad): Likewise.
(atomicStore): Likewise.
(atomicFence):  Likewise.
(atomicMutexHandle, AtomicMutex): Declare types.
(_getAtomicMutex): New function.
(getAtomicMutex): Declare.

From-SVN: r270470
libphobos/ChangeLog
libphobos/libdruntime/core/atomic.d