mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 06:50:07 +00:00
alpha: Fix tls-macros.h
Reported to the gcc bugzilla, there was a missing dependency on $gp that let the compiler generated $gp reload be scheduled across the macros here.
This commit is contained in:
parent
47590bce28
commit
4ab6acaebd
@ -1,3 +1,8 @@
|
|||||||
|
2014-01-24 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/alpha/tls-macros.h (TLS_GD): Add dependency on $gp.
|
||||||
|
(TLS_LD, TLS_IE): Likewise.
|
||||||
|
|
||||||
2013-12-07 Richard Henderson <rth@redhat.com>
|
2013-12-07 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/alpha/bits/mman.h: Use <bits/mman-linux.h>,
|
* sysdeps/unix/sysv/linux/alpha/bits/mman.h: Use <bits/mman-linux.h>,
|
||||||
|
@ -2,21 +2,21 @@
|
|||||||
|
|
||||||
extern void *__tls_get_addr (void *);
|
extern void *__tls_get_addr (void *);
|
||||||
|
|
||||||
# define TLS_GD(x) \
|
# define TLS_GD(x) \
|
||||||
({ void *__result; \
|
({ register void *__gp asm ("$29"); void *__result; \
|
||||||
asm ("lda %0, " #x "($gp) !tlsgd" : "=r" (__result)); \
|
asm ("lda %0, " #x "($gp) !tlsgd" : "=r" (__result) : "r"(__gp)); \
|
||||||
__tls_get_addr (__result); })
|
__tls_get_addr (__result); })
|
||||||
|
|
||||||
# define TLS_LD(x) \
|
# define TLS_LD(x) \
|
||||||
({ void *__result; \
|
({ register void *__gp asm ("$29"); void *__result; \
|
||||||
asm ("lda %0, " #x "($gp) !tlsldm" : "=r" (__result)); \
|
asm ("lda %0, " #x "($gp) !tlsldm" : "=r" (__result) : "r"(__gp)); \
|
||||||
__result = __tls_get_addr (__result); \
|
__result = __tls_get_addr (__result); \
|
||||||
asm ("lda %0, " #x "(%0) !dtprel" : "+r" (__result)); \
|
asm ("lda %0, " #x "(%0) !dtprel" : "+r" (__result)); \
|
||||||
__result; })
|
__result; })
|
||||||
|
|
||||||
# define TLS_IE(x) \
|
# define TLS_IE(x) \
|
||||||
({ long ofs; \
|
({ register void *__gp asm ("$29"); long ofs; \
|
||||||
asm ("ldq %0, " #x "($gp) !gottprel" : "=r"(ofs)); \
|
asm ("ldq %0, " #x "($gp) !gottprel" : "=r"(ofs) : "r"(__gp)); \
|
||||||
__builtin_thread_pointer () + ofs; })
|
__builtin_thread_pointer () + ofs; })
|
||||||
|
|
||||||
# define TLS_LE(x) \
|
# define TLS_LE(x) \
|
||||||
|
Loading…
Reference in New Issue
Block a user