gcc/libstdc++-v3/include
Jonathan Wakely 89cf858571 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.
2021-09-02 18:22:33 +01:00
..
backward
bits libstdc++: Implement std::atomic<T*>::compare_exchange_weak 2021-09-02 18:22:33 +01:00
c
c_compatibility
c_global libstdc++: Add additional overload of std::lerp [PR101870] 2021-08-12 19:46:16 +01:00
c_std
debug libstdc++: Fix CTAD for debug sequence containers 2021-08-18 14:26:38 +01:00
decimal
experimental libstdc++: Improve error handling in Net TS name resolution 2021-08-31 17:36:11 +01:00
ext libstdc++: Fix std::allocator<void> for versioned namespace 2021-08-28 14:37:19 +01:00
parallel
precompiled
pstl
std libstdc++: Implement std::atomic<T*>::compare_exchange_weak 2021-09-02 18:22:33 +01:00
tr1
tr2
Makefile.am libstdc++: Move COW string definitions to separate header 2021-07-27 12:04:18 +01:00
Makefile.in libstdc++: Move COW string definitions to separate header 2021-07-27 12:04:18 +01:00