mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
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:
parent
a51c409779
commit
be88628621
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user