libstdc++: Use __GCC_ATOMIC_TEST_AND_SET in atomic_flag.
authorRichard Henderson <rth@redhat.com>
Thu, 26 Jan 2012 21:50:52 +0000 (13:50 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 26 Jan 2012 21:50:52 +0000 (13:50 -0800)
commite29137fe36371903cee894f8706c2f906bc2754f
tree790f5a7979968aad47dc67d280f066322d6fa976
parent57c5ab1ba6798741ed42da56111dee7b741108fa
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.

From-SVN: r183582
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/atomic_base.h