atomicity.h (__exchange_and_add): Fix output constraint.

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

From-SVN: r75017
This commit is contained in:
Andrew Pinski 2003-12-25 04:27:58 +00:00 committed by Andrew Pinski
parent a51c409779
commit be88628621
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
2003-12-24 Andrew Pinski <pinskia@physics.uc.edu>
* config/cpu/i386/atomicity.h (__exchange_and_add): Fix output
constraint.
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>

View File

@ -52,7 +52,7 @@ __exchange_and_add(volatile _Atomic_word* __mem, int __val)
/* obtain the atomic exchange/add spin lock */
do {
__asm__ __volatile__ ("xchg{l} {%0,%1|%1,%0}"
: "m" (__Atomicity_lock<0>::_S_atomicity_lock),
: "=m" (__Atomicity_lock<0>::_S_atomicity_lock),
"+r" (__tmp)
: "m" (__Atomicity_lock<0>::_S_atomicity_lock));
} while (__tmp);