diff options
author | Fangrui Song <maskray@google.com> | 2021-08-18 09:15:20 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2021-08-18 09:15:20 -0700 |
commit | 710ba420fd417a4a82e0ad2e998e5f3b972cb503 (patch) | |
tree | d29323d05fb2596578e2cc017f5982d6a43afec4 /sysdeps/alpha | |
parent | b37b75d269883a2c553bb7019a813094eb4e2dd1 (diff) | |
download | glibc-710ba420fd417a4a82e0ad2e998e5f3b972cb503.tar.gz |
Remove sysdeps/*/tls-macros.h
They provide TLS_GD/TLS_LD/TLS_IE/TLS_IE macros for TLS testing. Now
that we have migrated to __thread and tls_model attributes, these macros
are unused and the tls-macros.h files can retire.
Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Diffstat (limited to 'sysdeps/alpha')
-rw-r--r-- | sysdeps/alpha/tls-macros.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sysdeps/alpha/tls-macros.h b/sysdeps/alpha/tls-macros.h deleted file mode 100644 index 00489c289f..0000000000 --- a/sysdeps/alpha/tls-macros.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Macros to support TLS testing in times of missing compiler support. */ - -extern void *__tls_get_addr (void *); - -# define TLS_GD(x) \ - ({ register void *__gp asm ("$29"); void *__result; \ - asm ("lda %0, " #x "($gp) !tlsgd" : "=r" (__result) : "r"(__gp)); \ - __tls_get_addr (__result); }) - -# define TLS_LD(x) \ - ({ register void *__gp asm ("$29"); void *__result; \ - asm ("lda %0, " #x "($gp) !tlsldm" : "=r" (__result) : "r"(__gp)); \ - __result = __tls_get_addr (__result); \ - asm ("lda %0, " #x "(%0) !dtprel" : "+r" (__result)); \ - __result; }) - -# define TLS_IE(x) \ - ({ register void *__gp asm ("$29"); long ofs; \ - asm ("ldq %0, " #x "($gp) !gottprel" : "=r"(ofs) : "r"(__gp)); \ - __builtin_thread_pointer () + ofs; }) - -# define TLS_LE(x) \ - ({ void *__result = __builtin_thread_pointer (); \ - asm ("lda %0, " #x "(%0) !tprel" : "+r" (__result)); \ - __result; }) |