Remove __const__ qualifier from __asm__ statements... GCC since at least
authorOwen Taylor <otaylor@redhat.com>
Mon, 25 Mar 2002 23:18:13 +0000 (23:18 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 25 Mar 2002 23:18:13 +0000 (23:18 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gtypes.h

index 65935d5..6dfffb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 65935d5..6dfffb5 100644 (file)
@@ -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
index 65935d5..6dfffb5 100644 (file)
@@ -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
index 65935d5..6dfffb5 100644 (file)
@@ -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
index 65935d5..6dfffb5 100644 (file)
@@ -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
index 65935d5..6dfffb5 100644 (file)
@@ -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
index 65935d5..6dfffb5 100644 (file)
@@ -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
index 20aa827..cc1801d 100644 (file)
@@ -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))