[patch] libstdc++/60940 unify std::atomic_xxx typedefs with std::atomic<xxx> types

Jonathan Wakely jwakely@redhat.com
Sat Jan 17 02:10:00 GMT 2015


Here's the finished version of the proof-of-concept patch I sent
in stage1.

This changes the atomic_int typedef to be a synonym for
std::atomic<int> instead of std::__atomic_base<int>, and likewise for
the other atomic integral types.

This fixes PR 60940, so that the non-member atomic ops such as
std::atomic_load(), std::atomic_store() etc. work on the typedefs, not
only on the std::atomic<T> types.

Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 17159 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150117/ecd01bda/attachment.bin>


More information about the Gcc-patches mailing list