aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/x86_64/tls.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-09-24 09:11:12 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-09-24 09:11:12 -0700
commit620f3d26702ceff24c9d3432ea69ece893247d24 (patch)
tree5131252f2907dc6b4b9a331a059992b317929662 /nptl/sysdeps/x86_64/tls.h
parentced6f16ee919d12725840d43d007f1cfd67118df (diff)
downloadglibc-620f3d26702ceff24c9d3432ea69ece893247d24.tar
glibc-620f3d26702ceff24c9d3432ea69ece893247d24.tar.gz
glibc-620f3d26702ceff24c9d3432ea69ece893247d24.tar.bz2
glibc-620f3d26702ceff24c9d3432ea69ece893247d24.zip
Add "()" when casting to uint64_t for 64-bit store
Diffstat (limited to 'nptl/sysdeps/x86_64/tls.h')
-rw-r--r--nptl/sysdeps/x86_64/tls.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/sysdeps/x86_64/tls.h b/nptl/sysdeps/x86_64/tls.h
index f838916058..b651d1cfa8 100644
--- a/nptl/sysdeps/x86_64/tls.h
+++ b/nptl/sysdeps/x86_64/tls.h
@@ -256,7 +256,7 @@ typedef struct
abort (); \
\
asm volatile ("movq %q0,%%fs:%P1" : \
- : IMM_MODE ((uint64_t) value), \
+ : IMM_MODE ((uint64_t) (value)), \
"i" (offsetof (struct pthread, member))); \
}})
@@ -281,7 +281,7 @@ typedef struct
abort (); \
\
asm volatile ("movq %q0,%%fs:%P1(,%q2,8)" : \
- : IMM_MODE ((uint64_t) value), \
+ : IMM_MODE ((uint64_t) (value)), \
"i" (offsetof (struct pthread, member[0])), \
"r" (idx)); \
}})