diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-06 16:54:26 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-06 16:54:26 +0000 |
commit | ffca001431383db73c1c827b614283aaf6a9c832 (patch) | |
tree | 6301b401db174eee94ce081388f3b098542837cc /libstdc++-v3 | |
parent | 577cba38845aaff506ff61a0f6e79a668af93c79 (diff) | |
download | gcc-ffca001431383db73c1c827b614283aaf6a9c832.tar.gz |
* config/cpu/s390/atomicity.h (__exchange_and_add): Add "memory"
clobber to inline assembly statement.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97728 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/s390/atomicity.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 78f23707edf..60996fd1913 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2005-04-06 Ulrich Weigand <uweigand@de.ibm.com> + + * config/cpu/s390/atomicity.h (__exchange_and_add): Add "memory" + clobber to inline assembly statement. + 2005-04-06 Kelley Cook <kcook@gcc.gnu.org> * acinclude.m4 (_GLIBCXX_USE_LONG_LONG, diff --git a/libstdc++-v3/config/cpu/s390/atomicity.h b/libstdc++-v3/config/cpu/s390/atomicity.h index b979e3abd33..cf903b321f4 100644 --- a/libstdc++-v3/config/cpu/s390/atomicity.h +++ b/libstdc++-v3/config/cpu/s390/atomicity.h @@ -43,7 +43,8 @@ namespace __gnu_cxx " cs %0,%1,0(%3)\n" " jl 0b" : "=&d" (__old_val), "=&d" (__new_val), "=m" (*__mem) - : "a" (__mem), "d" (__val), "m" (*__mem) : "cc"); + : "a" (__mem), "d" (__val), "m" (*__mem) + : "cc", "memory"); return __old_val; } |