atomicity.h (__exchange_and_add): Add "memory" clobber to inline assembly statement.

* config/cpu/s390/atomicity.h (__exchange_and_add): Add "memory"
	clobber to inline assembly statement.

From-SVN: r97728
This commit is contained in:
Ulrich Weigand 2005-04-06 16:54:26 +00:00 committed by Ulrich Weigand
parent b17bba6d24
commit 8270a21775
2 changed files with 7 additions and 1 deletions

View File

@ -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,

View File

@ -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;
}