atomicity.h (__exchange_and_add): Add "memory" clobber to inline assembly statement.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 6 Apr 2005 16:54:26 +0000 (16:54 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Wed, 6 Apr 2005 16:54:26 +0000 (16:54 +0000)
* config/cpu/s390/atomicity.h (__exchange_and_add): Add "memory"
clobber to inline assembly statement.

From-SVN: r97728

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

index 78f23707edf2918cf3f58fc4061b46a648779fd0..60996fd19138d70406234ff71119f53e8c26370b 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * config/cpu/s390/atomicity.h (__exchange_and_add): Add "memory"
+       clobber to inline assembly statement.
+
 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
 
        * acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
index b979e3abd33c98ac45be6c9d3f8853049a9b3639..cf903b321f4d77e25dd3472648c8474d7ba7a1de 100644 (file)
@@ -43,7 +43,8 @@ namespace __gnu_cxx
                          "   cs    %0,%1,0(%3)\n"
                          "   jl    0b"
                          : "=&d" (__old_val), "=&d" (__new_val), "=m" (*__mem)
-                         : "a" (__mem), "d" (__val), "m" (*__mem) : "cc");
+                         : "a" (__mem), "d" (__val), "m" (*__mem)
+                         : "cc", "memory");
     return __old_val;
   }