Don't use matching constraints for asm mem parameters. This makes the code
authorManish Singh <yosh@gimp.org>
Sun, 6 Feb 2005 20:25:42 +0000 (20:25 +0000)
committerManish Singh <yosh@src.gnome.org>
Sun, 6 Feb 2005 20:25:42 +0000 (20:25 +0000)
Sun Feb  6 12:09:55 2005  Manish Singh  <yosh@gimp.org>

        * glib/gatomic.c: Don't use matching constraints for asm mem
        parameters. This makes the code match with current glibc, and
        quiets some warnings with gcc 3.4.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/gatomic.c

index 8b02addf239dc58f1c152b82167fc76a44d1dd0b..b0a7047cfdd480255c4731744a887ce01c70e5a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Feb  6 12:09:55 2005  Manish Singh  <yosh@gimp.org>
+
+       * glib/gatomic.c: Don't use matching constraints for asm mem
+       parameters. This makes the code match with current glibc, and
+       quiets some warnings with gcc 3.4.
+
 2005-02-05  Tor Lillqvist  <tml@novell.com>
 
        * configure.in (G_LIBS_EXTRA)
index 8b02addf239dc58f1c152b82167fc76a44d1dd0b..b0a7047cfdd480255c4731744a887ce01c70e5a6 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  6 12:09:55 2005  Manish Singh  <yosh@gimp.org>
+
+       * glib/gatomic.c: Don't use matching constraints for asm mem
+       parameters. This makes the code match with current glibc, and
+       quiets some warnings with gcc 3.4.
+
 2005-02-05  Tor Lillqvist  <tml@novell.com>
 
        * configure.in (G_LIBS_EXTRA)
index 8b02addf239dc58f1c152b82167fc76a44d1dd0b..b0a7047cfdd480255c4731744a887ce01c70e5a6 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  6 12:09:55 2005  Manish Singh  <yosh@gimp.org>
+
+       * glib/gatomic.c: Don't use matching constraints for asm mem
+       parameters. This makes the code match with current glibc, and
+       quiets some warnings with gcc 3.4.
+
 2005-02-05  Tor Lillqvist  <tml@novell.com>
 
        * configure.in (G_LIBS_EXTRA)
index 8b02addf239dc58f1c152b82167fc76a44d1dd0b..b0a7047cfdd480255c4731744a887ce01c70e5a6 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  6 12:09:55 2005  Manish Singh  <yosh@gimp.org>
+
+       * glib/gatomic.c: Don't use matching constraints for asm mem
+       parameters. This makes the code match with current glibc, and
+       quiets some warnings with gcc 3.4.
+
 2005-02-05  Tor Lillqvist  <tml@novell.com>
 
        * configure.in (G_LIBS_EXTRA)
index a8aca71b708b6719a272eaa34b174c49b2379d1b..d4af389944d7773223593708b8554734b7702e1d 100644 (file)
@@ -264,9 +264,9 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
 }
 
 # elif defined (G_ATOMIC_POWERPC)
-/* Adapted from CVS version 1.12 of glibc's sysdeps/powerpc/bits/atomic.h 
- * and CVS version 1.3 of glibc's sysdeps/powerpc/powerpc32/bits/atomic.h 
- * and CVS version 1.2 of glibc's sysdeps/powerpc/powerpc64/bits/atomic.h 
+/* Adapted from CVS version 1.16 of glibc's sysdeps/powerpc/bits/atomic.h 
+ * and CVS version 1.4 of glibc's sysdeps/powerpc/powerpc32/bits/atomic.h 
+ * and CVS version 1.7 of glibc's sysdeps/powerpc/powerpc64/bits/atomic.h 
  */
 #   ifdef __OPTIMIZE__
 /* Non-optimizing compile bails on the following two asm statements
@@ -281,7 +281,7 @@ g_atomic_int_exchange_and_add (gint *atomic,
                        "         stwcx.  %1,0,%3\n"
                        "         bne-    1b"
                        : "=&b" (result), "=&r" (temp), "=m" (*atomic)
-                       : "b" (atomic), "r" (val), "2" (*atomic)
+                       : "b" (atomic), "r" (val), "m" (*atomic)
                        : "cr0", "memory");
   return result;
 }
@@ -297,7 +297,7 @@ g_atomic_int_add (gint *atomic,
                        "         stwcx.  %1,0,%3\n"
                        "         bne-    1b"
                        : "=&b" (result), "=&r" (temp), "=m" (*atomic)
-                       : "b" (atomic), "r" (val), "2" (*atomic)
+                       : "b" (atomic), "r" (val), "m" (*atomic)
                        : "cr0", "memory");
 }
 #   else /* !__OPTIMIZE__ */