This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]