From d4288c30bd60ec35a580bdfa5cfa26ff334e644b Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 21 Dec 2003 17:31:58 +0000 Subject: [PATCH] Avoid matching memory constraints. --- sysdeps/m68k/m68020/bits/atomic.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sysdeps/m68k/m68020/bits/atomic.h b/sysdeps/m68k/m68020/bits/atomic.h index bbffc52..746dc2e 100644 --- a/sysdeps/m68k/m68020/bits/atomic.h +++ b/sysdeps/m68k/m68020/bits/atomic.h @@ -115,7 +115,7 @@ typedef uintmax_t uatomic_max_t; " jbne 1b" \ : "=d" (__result), "=m" (*(mem)), \ "=&d" (__temp) \ - : "d" (value), "1" (*(mem)), "0" (__result)); \ + : "d" (value), "m" (*(mem)), "0" (__result)); \ else if (sizeof (*(mem)) == 2) \ __asm __volatile ("1: move%.w %0,%2;" \ " add%.w %3,%2;" \ @@ -123,7 +123,7 @@ typedef uintmax_t uatomic_max_t; " jbne 1b" \ : "=d" (__result), "=m" (*(mem)), \ "=&d" (__temp) \ - : "d" (value), "1" (*(mem)), "0" (__result)); \ + : "d" (value), "m" (*(mem)), "0" (__result)); \ else if (sizeof (*(mem)) == 4) \ __asm __volatile ("1: move%.l %0,%2;" \ " add%.l %3,%2;" \ @@ -131,7 +131,7 @@ typedef uintmax_t uatomic_max_t; " jbne 1b" \ : "=d" (__result), "=m" (*(mem)), \ "=&d" (__temp) \ - : "d" (value), "1" (*(mem)), "0" (__result)); \ + : "d" (value), "m" (*(mem)), "0" (__result)); \ else \ { \ __typeof (mem) __memp = (mem); \ @@ -152,15 +152,15 @@ typedef uintmax_t uatomic_max_t; (void) ({ if (sizeof (*(mem)) == 1) \ __asm __volatile ("add%.b %1,%0" \ : "=m" (*(mem)) \ - : "id" (value), "0" (*(mem))); \ + : "id" (value), "m" (*(mem))); \ else if (sizeof (*(mem)) == 2) \ __asm __volatile ("add%.w %1,%0" \ : "=m" (*(mem)) \ - : "id" (value), "0" (*(mem))); \ + : "id" (value), "m" (*(mem))); \ else if (sizeof (*(mem)) == 4) \ __asm __volatile ("add%.l %1,%0" \ : "=m" (*(mem)) \ - : "id" (value), "0" (*(mem))); \ + : "id" (value), "m" (*(mem))); \ else \ { \ __typeof (mem) __memp = (mem); \ @@ -184,15 +184,15 @@ typedef uintmax_t uatomic_max_t; if (sizeof (*(mem)) == 1) \ __asm __volatile ("addq%.b %#1,%1; seq %0" \ : "=dm" (__result), "=m" (*(mem)) \ - : "1" (*(mem))); \ + : "m" (*(mem))); \ else if (sizeof (*(mem)) == 2) \ __asm __volatile ("addq%.w %#1,%1; seq %0" \ : "=dm" (__result), "=m" (*(mem)) \ - : "1" (*(mem))); \ + : "m" (*(mem))); \ else if (sizeof (*(mem)) == 4) \ __asm __volatile ("addq%.l %#1,%1; seq %0" \ : "=dm" (__result), "=m" (*(mem)) \ - : "1" (*(mem))); \ + : "m" (*(mem))); \ else \ { \ __typeof (mem) __memp = (mem); \ @@ -218,15 +218,15 @@ typedef uintmax_t uatomic_max_t; if (sizeof (*(mem)) == 1) \ __asm __volatile ("subq%.b %#1,%1; seq %0" \ : "=dm" (__result), "=m" (*(mem)) \ - : "1" (*(mem))); \ + : "m" (*(mem))); \ else if (sizeof (*(mem)) == 2) \ __asm __volatile ("subq%.w %#1,%1; seq %0" \ : "=dm" (__result), "=m" (*(mem)) \ - : "1" (*(mem))); \ + : "m" (*(mem))); \ else if (sizeof (*(mem)) == 4) \ __asm __volatile ("subq%.l %#1,%1; seq %0" \ : "=dm" (__result), "=m" (*(mem)) \ - : "1" (*(mem))); \ + : "m" (*(mem))); \ else \ { \ __typeof (mem) __memp = (mem); \ -- 2.7.4