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
This commit is contained in:
parent
d8867564fe
commit
8f0d85d6e8
@ -1,3 +1,9 @@
|
||||
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>
|
||||
|
||||
PR libstdc++/14991
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user