[PATCH] [Committed] Fix PR libstdc++/13480 warning in i386's atomicity.h
Andrew Pinski
pinskia@physics.uc.edu
Thu Dec 25 02:00:00 GMT 2003
It looks like Jason forgot to update the i386's atomicity.h for the new
warning.
This fixes the warning, I committed as obvious.
Thanks,
Andrew Pinski
ChangeLog:
* cpu/i386/atomicity.h (__exchange_and_add): Make memory I/O explicit.
Patch:
Index: atomicity.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/cpu/i386/atomicity.h,v
retrieving revision 1.8
diff -u -p -r1.8 atomicity.h
--- atomicity.h 10 Dec 2003 04:52:35 -0000 1.8
+++ atomicity.h 25 Dec 2003 01:55:44 -0000
@@ -52,8 +52,9 @@ __exchange_and_add(volatile _Atomic_word
/* obtain the atomic exchange/add spin lock */
do {
__asm__ __volatile__ ("xchg{l} {%0,%1|%1,%0}"
- : "+m" (__Atomicity_lock<0>::_S_atomicity_lock),
- "+r" (__tmp));
+ : "m" (__Atomicity_lock<0>::_S_atomicity_lock),
+ "+r" (__tmp)
+ : "m"
(__Atomicity_lock<0>::_S_atomicity_lock));
} while (__tmp);
__result = *__mem;
More information about the Libstdc++
mailing list