mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 12:23:59 +08:00
atomicity.h (__exchange_and_add, [...]): Add memory barrier to locking asm.
* cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory barrier to locking asm. From-SVN: r86328
This commit is contained in:
parent
6f4234e9d7
commit
dd8b67a1a8
@ -1,3 +1,8 @@
|
||||
2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||
|
||||
* cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
|
||||
barrier to locking asm.
|
||||
|
||||
2004-08-20 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
|
||||
|
@ -61,7 +61,8 @@ namespace __gnu_cxx
|
||||
"nop\n\t"
|
||||
"b,n .-20"
|
||||
: "=&r" (tmp)
|
||||
: "r" (&lock));
|
||||
: "r" (&lock)
|
||||
: "memory");
|
||||
|
||||
result = *__mem;
|
||||
*__mem = result + __val;
|
||||
@ -85,7 +86,8 @@ namespace __gnu_cxx
|
||||
"nop\n\t"
|
||||
"b,n .-20"
|
||||
: "=&r" (tmp)
|
||||
: "r" (&lock));
|
||||
: "r" (&lock)
|
||||
: "memory");
|
||||
|
||||
*__mem += __val;
|
||||
/* Reset lock with PA 2.0 "ordered" store. */
|
||||
|
Loading…
Reference in New Issue
Block a user