From: John David Anglin Date: Sat, 13 Jan 2007 15:06:32 +0000 (+0000) Subject: atomicity.h (__exchange_and_add): Don't use ordered store. X-Git-Tag: releases/gcc-4.3.0~7512 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f0d85d6e81d481c61a70ec77d7f14c77c9d5921;p=thirdparty%2Fgcc.git 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ad457a60adf0..5a20902efbe3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2007-01-13 John David Anglin + + * config/cpu/hppa/atomicity.h (__exchange_and_add): Don't use ordered + store. + (__atomic_add): Likewise. + 2007-01-13 Paolo Carlini PR libstdc++/14991 diff --git a/libstdc++-v3/config/cpu/hppa/atomicity.h b/libstdc++-v3/config/cpu/hppa/atomicity.h index 76c09e046fb5..dc415ca32a3a 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"); }