mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
Don't use matching constraints for asm mem parameters. This makes the code
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.
This commit is contained in:
parent
d049c6e557
commit
181d7721b2
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user