about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2003-12-21 17:31:58 +0000
committerAndreas Schwab <schwab@suse.de>2003-12-21 17:31:58 +0000
commitd4288c30bd60ec35a580bdfa5cfa26ff334e644b (patch)
tree059962cccd2a9af3aa7cd970a7e840d44963b8ac /sysdeps
parentc0ecb80a43103964d30d8629ce45098fca307081 (diff)
downloadglibc-d4288c30bd60ec35a580bdfa5cfa26ff334e644b.tar.gz
glibc-d4288c30bd60ec35a580bdfa5cfa26ff334e644b.tar.xz
glibc-d4288c30bd60ec35a580bdfa5cfa26ff334e644b.zip
Avoid matching memory constraints.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/m68k/m68020/bits/atomic.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/sysdeps/m68k/m68020/bits/atomic.h b/sysdeps/m68k/m68020/bits/atomic.h
index bbffc526a8..746dc2e06e 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);					      \