diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2007-01-13 15:06:32 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2007-01-13 15:06:32 +0000 |
commit | 8f0d85d6e81d481c61a70ec77d7f14c77c9d5921 (patch) | |
tree | 03e56f2b8dadde6be47f2838c7636a917f87e2f7 /libstdc++-v3/config/cpu | |
parent | d8867564fe73d2f013c8ec5a4e03f1aba1acd549 (diff) | |
download | gcc-8f0d85d6e81d481c61a70ec77d7f14c77c9d5921.zip gcc-8f0d85d6e81d481c61a70ec77d7f14c77c9d5921.tar.gz gcc-8f0d85d6e81d481c61a70ec77d7f14c77c9d5921.tar.bz2 |
atomicity.h (__exchange_and_add): Don't use ordered store.
* config/cpu/hppa/atomicity.h (__exchange_and_add): Don't use ordered
store.
(__atomic_add): Likewise.
From-SVN: r120751
Diffstat (limited to 'libstdc++-v3/config/cpu')
-rw-r--r-- | libstdc++-v3/config/cpu/hppa/atomicity.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libstdc++-v3/config/cpu/hppa/atomicity.h b/libstdc++-v3/config/cpu/hppa/atomicity.h index 76c09e0..dc415ca 100644 --- a/libstdc++-v3/config/cpu/hppa/atomicity.h +++ b/libstdc++-v3/config/cpu/hppa/atomicity.h @@ -66,8 +66,7 @@ _GLIBCXX_BEGIN_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 @@ _GLIBCXX_BEGIN_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"); } |