OSDN Git Service

libstdc++: Use __GCC_ATOMIC_TEST_AND_SET in atomic_flag.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jan 2012 21:50:52 +0000 (21:50 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jan 2012 21:50:52 +0000 (21:50 +0000)
commit2257a5436d5bdfe4d61c318173ac315336b7f891
tree790f5a7979968aad47dc67d280f066322d6fa976
parentdf1680c83ab28b632d1a8cb6c2fc107113379671
libstdc++: Use __GCC_ATOMIC_TEST_AND_SET in atomic_flag.

        * include/bits/atomic_base.h (__atomic_flag_base): Define _M_i
        based on the value of __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
        (ATOMIC_FLAG_INIT): Initialize with 0, not false.
        (atomic_flag::atomic_flag): Use __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183582 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/atomic_base.h