diff --git a/ChangeLog b/ChangeLog index 65935d526..6dfffb5cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Mar 25 18:13:06 2002 Owen Taylor + + * 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 * glib/gmem.c (g_mem_chunk_reset): Fix problem where diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 65935d526..6dfffb5cd 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +Mon Mar 25 18:13:06 2002 Owen Taylor + + * 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 * glib/gmem.c (g_mem_chunk_reset): Fix problem where diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 65935d526..6dfffb5cd 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,10 @@ +Mon Mar 25 18:13:06 2002 Owen Taylor + + * 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 * glib/gmem.c (g_mem_chunk_reset): Fix problem where diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 65935d526..6dfffb5cd 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +Mon Mar 25 18:13:06 2002 Owen Taylor + + * 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 * glib/gmem.c (g_mem_chunk_reset): Fix problem where diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 65935d526..6dfffb5cd 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +Mon Mar 25 18:13:06 2002 Owen Taylor + + * 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 * glib/gmem.c (g_mem_chunk_reset): Fix problem where diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 65935d526..6dfffb5cd 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +Mon Mar 25 18:13:06 2002 Owen Taylor + + * 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 * glib/gmem.c (g_mem_chunk_reset): Fix problem where diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 65935d526..6dfffb5cd 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +Mon Mar 25 18:13:06 2002 Owen Taylor + + * 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 * glib/gmem.c (g_mem_chunk_reset): Fix problem where diff --git a/glib/gtypes.h b/glib/gtypes.h index 20aa82782..cc1801d26 100644 --- a/glib/gtypes.h +++ b/glib/gtypes.h @@ -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))