Use uint64_t on 64-bit integer
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 11 May 2012 17:14:57 +0000 (10:14 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 11 May 2012 17:14:57 +0000 (10:14 -0700)
nptl/ChangeLog
nptl/sysdeps/x86_64/tls.h

index 752cde9..830690c 100644 (file)
@@ -1,5 +1,11 @@
 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * sysdeps/x86_64/tls.h (THREAD_SETMEM): Use uint64_t on 64-bit
+       integer.
+       (THREAD_SETMEM_NC): Likewise.
+
+2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
+
        * sysdeps/x86_64/tls.h (THREAD_SELF): Replace movq/%q0 with
        mov/%0.
 
index 6e80a02..77f04f2 100644 (file)
@@ -261,7 +261,7 @@ typedef struct
           abort ();                                                          \
                                                                              \
         asm volatile ("movq %q0,%%fs:%P1" :                                  \
-                      : IMM_MODE ((unsigned long int) value),                \
+                      : IMM_MODE ((uint64_t) value),                         \
                         "i" (offsetof (struct pthread, member)));            \
        }})
 
@@ -286,7 +286,7 @@ typedef struct
           abort ();                                                          \
                                                                              \
         asm volatile ("movq %q0,%%fs:%P1(,%q2,8)" :                          \
-                      : IMM_MODE ((unsigned long int) value),                \
+                      : IMM_MODE ((uint64_t) value),                         \
                         "i" (offsetof (struct pthread, member[0])),          \
                         "r" (idx));                                          \
        }})