]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
atomicity.h (__exchange_and_add): Don't use ordered store.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sat, 13 Jan 2007 15:17:14 +0000 (15:17 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 13 Jan 2007 15:17:14 +0000 (15:17 +0000)
* config/cpu/hppa/atomicity.h (__exchange_and_add): Don't use ordered
store.
(__atomic_add): Likewise.

From-SVN: r120754

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

index 8e89cd354760fc8a7fd7a449bb6bd221a9ed1945..7c51203cafab446807dc13ce7187cac22c4c28d7 100644 (file)
@@ -1,3 +1,9 @@
+2007-01-13  John David Anglin  <dave.anglin@nrc-cnrc.gc>
+
+       * config/cpu/hppa/atomicity.h (__exchange_and_add): Don't use ordered
+       store.
+       (__atomic_add): Likewise.
+
 2006-10-06  Paolo Carlini  <pcarlini@suse.de>
 
        PR libstdc++/29368
index 3f711d13bbe3439b6ba714ba881050f5fa635321..e0abe2531231dded2112d8fec1d96d1b788b4797 100644 (file)
@@ -66,8 +66,7 @@ namespace __gnu_cxx
     
     result = *__mem;
     *__mem = result + __val;
-    /* Reset lock with PA 2.0 "ordered" store.  */
-    __asm__ __volatile__ ("stw,ma %1,0(%0)"
+    __asm__ __volatile__ ("stw %1,0(%0)"
                          : : "r" (&lock), "r" (tmp) : "memory");
     return result;
   }
@@ -90,8 +89,7 @@ namespace __gnu_cxx
                          : "memory");
     
     *__mem += __val;
-    /* Reset lock with PA 2.0 "ordered" store.  */
-    __asm__ __volatile__ ("stw,ma %1,0(%0)"
+    __asm__ __volatile__ ("stw %1,0(%0)"
                          : : "r" (&lock), "r" (tmp) : "memory");
   }
 } // namespace __gnu_cxx