Commit be886286 by Andrew Pinski Committed by Andrew Pinski

atomicity.h (__exchange_and_add): Fix output constraint.

        * config/cpu/i386/atomicity.h (__exchange_and_add): Fix output
        constraint.

From-SVN: r75017
parent a51c4097
2003-12-24 Andrew Pinski <pinskia@physics.uc.edu> 2003-12-24 Andrew Pinski <pinskia@physics.uc.edu>
* config/cpu/i386/atomicity.h (__exchange_and_add): Fix output
constraint.
PR libstdc++/13480 PR libstdc++/13480
* config/cpu/i486/atomicity.h: Split up read-write memory operand. * config/cpu/i386/atomicity.h: Split up read-write memory operand.
2003-12-23 Benjamin Kosnik <bkoz@redhat.com> 2003-12-23 Benjamin Kosnik <bkoz@redhat.com>
......
...@@ -52,7 +52,7 @@ __exchange_and_add(volatile _Atomic_word* __mem, int __val) ...@@ -52,7 +52,7 @@ __exchange_and_add(volatile _Atomic_word* __mem, int __val)
/* obtain the atomic exchange/add spin lock */ /* obtain the atomic exchange/add spin lock */
do { do {
__asm__ __volatile__ ("xchg{l} {%0,%1|%1,%0}" __asm__ __volatile__ ("xchg{l} {%0,%1|%1,%0}"
: "m" (__Atomicity_lock<0>::_S_atomicity_lock), : "=m" (__Atomicity_lock<0>::_S_atomicity_lock),
"+r" (__tmp) "+r" (__tmp)
: "m" (__Atomicity_lock<0>::_S_atomicity_lock)); : "m" (__Atomicity_lock<0>::_S_atomicity_lock));
} while (__tmp); } while (__tmp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment