From: John David Anglin Date: Sat, 13 Jan 2007 15:17:14 +0000 (+0000) Subject: atomicity.h (__exchange_and_add): Don't use ordered store. X-Git-Tag: releases/gcc-4.0.4~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da14e17bf0c6812c3a18303d205102f41c220963;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: r120754 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8e89cd354760..7c51203cafab 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. + 2006-10-06 Paolo Carlini PR libstdc++/29368 diff --git a/libstdc++-v3/config/cpu/hppa/atomicity.h b/libstdc++-v3/config/cpu/hppa/atomicity.h index 3f711d13bbe3..e0abe2531231 100644 --- a/libstdc++-v3/config/cpu/hppa/atomicity.h +++ b/libstdc++-v3/config/cpu/hppa/atomicity.h @@ -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