+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)
+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)
+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)
+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)
}
# 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
" 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;
}
" 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__ */