aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-09-02 16:47:31 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-09-02 18:22:33 +0100
commit89cf858571c58a58ca51dbbf3975582ebab41e2d (patch)
treec44a628d4ce857d2c8e0fe9473f59852c85a9f91 /libgcc
parent892400f1f21ccee98dddcd90677038ce266248c8 (diff)
downloadgcc-89cf858571c58a58ca51dbbf3975582ebab41e2d.zip
gcc-89cf858571c58a58ca51dbbf3975582ebab41e2d.tar.gz
gcc-89cf858571c58a58ca51dbbf3975582ebab41e2d.tar.bz2
libstdc++: Implement std::atomic<T*>::compare_exchange_weak
For some reason r170217 didn't add compare_exchange_weak to the __atomic_base<T*> partial specialization, and so weak compare exchange operations on pointers use compare_exchange_strong instead. This adds __atomic_base<T*>::compare_exchange_weak and then uses it in std::atomic<T*>::compare_exchange_weak. Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * include/bits/atomic_base.h (__atomic_base<P*>::compare_exchange_weak): Add new functions. * include/std/atomic (atomic<T*>::compare_exchange_weak): Use it.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions