mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
Remove __const__ qualifier from __asm__ statements... GCC since at least
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com> * glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__ qualifier from __asm__ statements... GCC since at least 2.96 has assumed no side effects automaticaly, and gcc-3.1 will warn about this usage. (#73308, Cody Russell)
This commit is contained in:
parent
75f7f9ed05
commit
a95ec87a93
@ -1,3 +1,10 @@
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
qualifier from __asm__ statements... GCC since at least
|
||||
2.96 has assumed no side effects automaticaly, and gcc-3.1
|
||||
will warn about this usage. (#73308, Cody Russell)
|
||||
|
||||
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
qualifier from __asm__ statements... GCC since at least
|
||||
2.96 has assumed no side effects automaticaly, and gcc-3.1
|
||||
will warn about this usage. (#73308, Cody Russell)
|
||||
|
||||
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
qualifier from __asm__ statements... GCC since at least
|
||||
2.96 has assumed no side effects automaticaly, and gcc-3.1
|
||||
will warn about this usage. (#73308, Cody Russell)
|
||||
|
||||
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
qualifier from __asm__ statements... GCC since at least
|
||||
2.96 has assumed no side effects automaticaly, and gcc-3.1
|
||||
will warn about this usage. (#73308, Cody Russell)
|
||||
|
||||
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
qualifier from __asm__ statements... GCC since at least
|
||||
2.96 has assumed no side effects automaticaly, and gcc-3.1
|
||||
will warn about this usage. (#73308, Cody Russell)
|
||||
|
||||
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
qualifier from __asm__ statements... GCC since at least
|
||||
2.96 has assumed no side effects automaticaly, and gcc-3.1
|
||||
will warn about this usage. (#73308, Cody Russell)
|
||||
|
||||
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
qualifier from __asm__ statements... GCC since at least
|
||||
2.96 has assumed no side effects automaticaly, and gcc-3.1
|
||||
will warn about this usage. (#73308, Cody Russell)
|
||||
|
||||
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
|
||||
|
@ -123,9 +123,9 @@ typedef void (*GFreeFunc) (gpointer data);
|
||||
if (__builtin_constant_p (val)) \
|
||||
__v = GUINT16_SWAP_LE_BE_CONSTANT (val); \
|
||||
else \
|
||||
__asm__ __const__ ("rorw $8, %w0" \
|
||||
: "=r" (__v) \
|
||||
: "0" ((guint16) (val))); \
|
||||
__asm__ ("rorw $8, %w0" \
|
||||
: "=r" (__v) \
|
||||
: "0" ((guint16) (val))); \
|
||||
__v; }))
|
||||
# define GUINT16_SWAP_LE_BE(val) (GUINT16_SWAP_LE_BE_X86 (val))
|
||||
# if !defined(__i486__) && !defined(__i586__) \
|
||||
@ -136,11 +136,11 @@ typedef void (*GFreeFunc) (gpointer data);
|
||||
if (__builtin_constant_p (val)) \
|
||||
__v = GUINT32_SWAP_LE_BE_CONSTANT (val); \
|
||||
else \
|
||||
__asm__ __const__ ("rorw $8, %w0\n\t" \
|
||||
"rorl $16, %0\n\t" \
|
||||
"rorw $8, %w0" \
|
||||
: "=r" (__v) \
|
||||
: "0" ((guint32) (val))); \
|
||||
__asm__ ("rorw $8, %w0\n\t" \
|
||||
"rorl $16, %0\n\t" \
|
||||
"rorw $8, %w0" \
|
||||
: "=r" (__v) \
|
||||
: "0" ((guint32) (val))); \
|
||||
__v; }))
|
||||
# else /* 486 and higher has bswap */
|
||||
# define GUINT32_SWAP_LE_BE_X86(val) \
|
||||
@ -149,9 +149,9 @@ typedef void (*GFreeFunc) (gpointer data);
|
||||
if (__builtin_constant_p (val)) \
|
||||
__v = GUINT32_SWAP_LE_BE_CONSTANT (val); \
|
||||
else \
|
||||
__asm__ __const__ ("bswap %0" \
|
||||
: "=r" (__v) \
|
||||
: "0" ((guint32) (val))); \
|
||||
__asm__ ("bswap %0" \
|
||||
: "=r" (__v) \
|
||||
: "0" ((guint32) (val))); \
|
||||
__v; }))
|
||||
# endif /* processor specific 32-bit stuff */
|
||||
# define GUINT32_SWAP_LE_BE(val) (GUINT32_SWAP_LE_BE_X86 (val))
|
||||
|
Loading…
Reference in New Issue
Block a user