From: Andreas Schwab Date: Wed, 15 Aug 2001 13:09:16 +0000 (+0000) Subject: (atomic_add): Don't allow address register for operand 0. X-Git-Tag: upstream/2.30~10627^2~1822 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4afac624ab0856b3b9e13c48343369935b4e20e4;p=external%2Fglibc.git (atomic_add): Don't allow address register for operand 0. --- diff --git a/sysdeps/m68k/m68020/atomicity.h b/sysdeps/m68k/m68020/atomicity.h index 4639b01..4649480 100644 --- a/sysdeps/m68k/m68020/atomicity.h +++ b/sysdeps/m68k/m68020/atomicity.h @@ -45,7 +45,7 @@ atomic_add (volatile uint32_t *mem, int val) { /* XXX Use cas here as well? */ __asm__ __volatile__ ("add%.l %0,%1" - : : "ir" (val), "m" (*mem) : "memory"); + : : "id" (val), "m" (*mem) : "memory"); } static inline int