This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH] [Committed] Fix PR libstdc++/13480 warning in i386's atomicity.h
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: libstdc++ at gcc dot gnu dot org, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Wed, 24 Dec 2003 21:00:22 -0500
- Subject: [PATCH] [Committed] Fix PR libstdc++/13480 warning in i386's atomicity.h
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;