diff options
author | Jason Merrill <jason@redhat.com> | 2003-12-19 22:08:42 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-12-19 22:08:42 -0500 |
commit | 46eb4b398948ddef881e51b9c49d96e242d56002 (patch) | |
tree | 536adb8ba0344092c4b99ba083903902491e9068 /libstdc++-v3/config/cpu/cris | |
parent | a06f01ba1e9b964c14ed6c63b56102d34ec6c45f (diff) | |
download | gcc-46eb4b398948ddef881e51b9c49d96e242d56002.zip gcc-46eb4b398948ddef881e51b9c49d96e242d56002.tar.gz gcc-46eb4b398948ddef881e51b9c49d96e242d56002.tar.bz2 |
atomicity.h: Remove memory clobbers.
* config/cpu/cris/atomicity.h: Remove memory clobbers.
* config/cpu/mips/atomicity.h: Likewise.
* config/cpu/i486/atomicity.h: Remove memory clobbers.
Split up read-write memory operand.
* config/cpu/m68k/atomicity.h: Likewise.
* config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
* config/cpu/s390/atomicity.h: Likewise.
* config/cpu/sparc/atomicity.h: Likewise.
From-SVN: r74870
Diffstat (limited to 'libstdc++-v3/config/cpu/cris')
-rw-r--r-- | libstdc++-v3/config/cpu/cris/atomicity.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libstdc++-v3/config/cpu/cris/atomicity.h b/libstdc++-v3/config/cpu/cris/atomicity.h index f254c76..fecb9dc 100644 --- a/libstdc++-v3/config/cpu/cris/atomicity.h +++ b/libstdc++-v3/config/cpu/cris/atomicity.h @@ -51,8 +51,7 @@ __exchange_and_add(_Atomic_word* __mem, int __val) " bwf 0b \n" " clearf \n" : "=&r" (__result), "=m" (*__mem), "=&r" (__tmp) - : "r" (__mem), "g" (__val), "m" (*__mem) - : "memory"); + : "r" (__mem), "g" (__val), "m" (*__mem)); #else __asm__ __volatile__ (" move $ccr,$r9 \n" " di \n" @@ -63,7 +62,7 @@ __exchange_and_add(_Atomic_word* __mem, int __val) " move $r9,$ccr \n" : "=&r" (__result), "=m" (*__mem), "=&r" (__tmp) : "r" (__mem), "g" (__val), "m" (*__mem) - : "memory", "r9"); + : "r9"); #endif return __result; |