diff options
author | Thomas Rodgers <trodgers@redhat.com> | 2020-12-01 15:41:08 -0800 |
---|---|---|
committer | Thomas Rodgers <trodgers@redhat.com> | 2020-12-01 15:43:17 -0800 |
commit | 6591e422692d80d066bacdcdafea2f864d8259c6 (patch) | |
tree | 264e546f31035d1075cfbd6b673fdb6aa1e5c98c /gcc/tree-ssa-loop-ch.c | |
parent | abef36919f741c8e4f7380b2c2ffbc6ad97c2b6b (diff) | |
download | gcc-6591e422692d80d066bacdcdafea2f864d8259c6.zip gcc-6591e422692d80d066bacdcdafea2f864d8259c6.tar.gz gcc-6591e422692d80d066bacdcdafea2f864d8259c6.tar.bz2 |
Add feature test macro for atomic<T>::wait
Adds __cpp_lib_atomic_wait feature test macro which was overlooked in
the initial commit of this feature. Replaces uses of
_GLIBCXX_HAVE_ATOMIC_WAIT.
libstdc++-v3/ChangeLog:
* include/bits/atomic_base.h: Replace usage of
_GLIBCXX_HAVE_ATOMIC_WAIT with __cpp_lib_atomic_wait.
* include/bits/atomic_timed_wait.h: Likewise.
* include/bits/atomic_wait.h: Define __cpp_lib_atomic_wait
feature test macro.
* include/bits/semaphore_base.h: Replace usage of
_GLIBCXX_HAVE_ATOMIC_WAIT with __cpp_lib_atomic_wait.
* include/std/atomic: Likewise.
* include/std/latch: Likewise.
* include/std/semaphore: Likewise.
* include/std/version: Define __cpp_lib_atomic wait
feature test macro and replace usage of
_GLIBCXX_HAVE_ATOMIC_WAIT.
* testsuite/29_atomics/atomic/wait_notify/1.cc: New test.
* testsuite/29_atomics/atomic/wait_notify/2.cc: Likewise.
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
0 files changed, 0 insertions, 0 deletions