diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-11-26 16:42:38 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-11-26 16:45:36 -0800 |
commit | c515fb5148f1d81d5f7736825e14c7502c15432a (patch) | |
tree | bffe0f355bac8c00df91b12a1feddc768677bc5d /nptl/sysdeps/x86_64 | |
parent | 4cf77aa9847aac13bf65c977396b6e8a66337238 (diff) | |
download | glibc-c515fb5148f1d81d5f7736825e14c7502c15432a.tar.gz glibc-c515fb5148f1d81d5f7736825e14c7502c15432a.tar.xz glibc-c515fb5148f1d81d5f7736825e14c7502c15432a.zip |
Cast to __intptr_t before casting pointer to int64
Diffstat (limited to 'nptl/sysdeps/x86_64')
-rw-r--r-- | nptl/sysdeps/x86_64/tls.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nptl/sysdeps/x86_64/tls.h b/nptl/sysdeps/x86_64/tls.h index bc60a511fb..f3b76495b3 100644 --- a/nptl/sysdeps/x86_64/tls.h +++ b/nptl/sysdeps/x86_64/tls.h @@ -26,6 +26,7 @@ # include <stdint.h> # include <stdlib.h> # include <sysdep.h> +# include <libc-internal.h> # include <kernel-features.h> /* Replacement type for __m128 since this file is included by ld.so, @@ -263,7 +264,7 @@ typedef struct abort (); \ \ asm volatile ("movq %q0,%%fs:%P1" : \ - : IMM_MODE ((uint64_t) (value)), \ + : IMM_MODE ((uint64_t) cast_to_integer (value)), \ "i" (offsetof (struct pthread, member))); \ }}) @@ -288,7 +289,7 @@ typedef struct abort (); \ \ asm volatile ("movq %q0,%%fs:%P1(,%q2,8)" : \ - : IMM_MODE ((uint64_t) (value)), \ + : IMM_MODE ((uint64_t) cast_to_integer (value)), \ "i" (offsetof (struct pthread, member[0])), \ "r" (idx)); \ }}) |