Commit 8f0d85d6 by John David Anglin Committed by John David Anglin

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
parent d8867564
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.
2007-01-13 Paolo Carlini <pcarlini@suse.de> 2007-01-13 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14991 PR libstdc++/14991
......
...@@ -66,8 +66,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) ...@@ -66,8 +66,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
result = *__mem; result = *__mem;
*__mem = result + __val; *__mem = result + __val;
/* Reset lock with PA 2.0 "ordered" store. */ __asm__ __volatile__ ("stw %1,0(%0)"
__asm__ __volatile__ ("stw,ma %1,0(%0)"
: : "r" (&lock), "r" (tmp) : "memory"); : : "r" (&lock), "r" (tmp) : "memory");
return result; return result;
} }
...@@ -90,8 +89,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) ...@@ -90,8 +89,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
: "memory"); : "memory");
*__mem += __val; *__mem += __val;
/* Reset lock with PA 2.0 "ordered" store. */ __asm__ __volatile__ ("stw %1,0(%0)"
__asm__ __volatile__ ("stw,ma %1,0(%0)"
: : "r" (&lock), "r" (tmp) : "memory"); : : "r" (&lock), "r" (tmp) : "memory");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment