]> gcc.gnu.org Git - gcc.git/commitdiff
atomicity.h (__exchange_and_add): Fix output constraint.
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 25 Dec 2003 04:27:58 +0000 (04:27 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 25 Dec 2003 04:27:58 +0000 (20:27 -0800)
        * config/cpu/i386/atomicity.h (__exchange_and_add): Fix output
        constraint.

From-SVN: r75017

libstdc++-v3/ChangeLog
libstdc++-v3/config/cpu/i386/atomicity.h

index 27b3a4b34957dddf0e93849acadb88deb2d5e181..72cbfbba94547ab3f17c81158485f39d7bf21396 100644 (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>
 
index 8905d78d87a103cf5959a1f89d734b94e0678330..7a949c30fa5ffbc883bccf0c2d3782c778f06309 100644 (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);
This page took 0.067559 seconds and 5 git commands to generate.