re PR libstdc++/5198 (3.0.3 linux x m68k build fail: invalid opcodes in c++locale.cc)
authorRichard Henderson <rth@redhat.com>
Thu, 24 Jan 2002 01:31:13 +0000 (17:31 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 24 Jan 2002 01:31:13 +0000 (17:31 -0800)
commitacae253ec1d44a69a7bbf8bb594842f56bdcc8be
tree43bb31632eb3cbbf75f7047242a100be3fab4a7b
parent88a446c0368eebe2b230ee2ade33a2fcdf3bd479
re PR libstdc++/5198 (3.0.3 linux x m68k build fail: invalid opcodes in c++locale.cc)

        PR libstdc++/5198
        * config/cpu/m68k/bits/atomicity.h (__exchange_and_add): Only use
        CAS on the cpu variants that support it.  Add versions that use
        TAS and that disable interrupts.
        (__atomic_add): Use __exchange_and_add to guarantee atomicity.

From-SVN: r49160
libstdc++-v3/ChangeLog
libstdc++-v3/config/cpu/m68k/bits/atomicity.h