diff options
24 files changed, 0 insertions, 1451 deletions
diff --git a/benchtests/strcoll-inputs/filelist#en_US.UTF-8 b/benchtests/strcoll-inputs/filelist#en_US.UTF-8 index 43eb9efb40..197700ec90 100644 --- a/benchtests/strcoll-inputs/filelist#en_US.UTF-8 +++ b/benchtests/strcoll-inputs/filelist#en_US.UTF-8 @@ -3195,7 +3195,6 @@ Implies submul_1.S sysdep.h add_n.S -tls-macros.h libc-tls.c sub_n.S libgcc-compat.c @@ -3443,7 +3442,6 @@ libresolv.abilist thread_state.h pty-private.h ldconfig.h -tls-macros.h fd_to_filename.h not-cancel.h safe-fatal.h @@ -3605,7 +3603,6 @@ start.S tst-mode-switch-3.c addmul_1.S add_n.S -tls-macros.h libc-tls.c sub_n.S strcmp.S @@ -3921,7 +3918,6 @@ addmul_1.S pthread_spin_trylock.S add_n.S e_sqrt.c -tls-macros.h sub_n.S strcmp.S strlen.S @@ -4138,7 +4134,6 @@ addmul_1.S pthread_spin_trylock.S add_n.S rtld-memset.c -tls-macros.h sub_n.S strcmp.S strlen.S @@ -4651,7 +4646,6 @@ addmul_1.S sysdep.h strlen.c add_n.S -tls-macros.h sub_n.S i786 Implies @@ -4712,7 +4706,6 @@ Makefile start.S libm-test-ulps sysdep.h -tls-macros.h libc-tls.c tst-audit.h dl-machine.h @@ -5071,7 +5064,6 @@ addmul_1.S sysdep.h add_n.S wcschr.S -tls-macros.h sub_n.S tst-quad2.c strcmp.S @@ -6337,7 +6329,6 @@ Makefile start.S libm-test-ulps sysdep.h -tls-macros.h libc-tls.c strlen.S tst-audit.h @@ -6447,7 +6438,6 @@ strstr.c string-endian.h memcmp.c sysdep.h -tls-macros.h tst-audit.h dl-machine.h dl-tls.h @@ -6581,7 +6571,6 @@ Makefile start.S libm-test-ulps sysdep.h -tls-macros.h libc-tls.c strcmp.S strrchr.S @@ -7004,7 +6993,6 @@ addmul_1.S Implies sysdep.h rtld-memset.c -tls-macros.h strcmp.S strlen.S tst-audit.h @@ -7124,7 +7112,6 @@ wcschr.c Makefile ffs.c sysdep.h -tls-macros.h test-arithf.c nofpu atomic-feupdateenv.c @@ -7386,7 +7373,6 @@ gprrest0.S sysdep.h add_n.S rtld-memset.c -tls-macros.h sub_n.S strcmp.S strlen.S @@ -7969,7 +7955,6 @@ memcmp.S Makefile start.S sysdep.h -tls-macros.h libc-tls.c strcmp.S sched_cpucount.c @@ -8197,7 +8182,6 @@ start.S addmul_1.S nscd-types.h add_n.S -tls-macros.h libc-tls.c sub_n.S divqu.S @@ -8318,7 +8302,6 @@ Makefile ffs.c start.S sysdep.h -tls-macros.h libc-tls.c tst-audit.h wcpcpy.c @@ -8628,7 +8611,6 @@ Makefile start.S sysdep.h add_n.S -tls-macros.h sub_n.S strcmp.S tst-audit.h @@ -8690,7 +8672,6 @@ start.S addmul_1.S sysdep.h add_n.S -tls-macros.h sub_n.S strcmp.S tst-audit.h @@ -8796,7 +8777,6 @@ ftestexcept.c rt-aeabi_unwind_cpp_pr1.c sysdep.h add_n.S -tls-macros.h libc-tls.c sub_n.S strlen.S @@ -8879,7 +8859,6 @@ Makefile start.S libm-test-ulps sysdep.h -tls-macros.h libc-tls.c tst-audit.h dl-machine.h @@ -12064,7 +12043,6 @@ nodelmod4.c dl-fini.c unload2dep.c unload8.c -tls-macros.h unload4.c tst-array5.exp unload4mod2.c diff --git a/sysdeps/aarch64/tls-macros.h b/sysdeps/aarch64/tls-macros.h deleted file mode 100644 index 33883dca40..0000000000 --- a/sysdeps/aarch64/tls-macros.h +++ /dev/null @@ -1,51 +0,0 @@ -/* Copyright (C) 2009-2021 Free Software Foundation, Inc. - - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2.1 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <https://www.gnu.org/licenses/>. */ - -#define TLS_LD(x) TLS_GD(x) - -#define TLS_GD(x) \ - ({ register unsigned long __result asm ("x0"); \ - asm ("adrp %0, :tlsgd:" #x "; " \ - "add %0, %0, #:tlsgd_lo12:" #x "; " \ - "bl __tls_get_addr;" \ - "nop" \ - : "=r" (__result) \ - : \ - : "x1", "x2", "x3", "x4", "x5", "x6", \ - "x7", "x8", "x9", "x10", "x11", "x12", \ - "x13", "x14", "x15", "x16", "x17", "x18", \ - "x30", "memory", "cc"); \ - (int *) (__result); }) - -#define TLS_IE(x) \ - ({ register unsigned long __result asm ("x0"); \ - register unsigned long __t; \ - asm ("mrs %1, tpidr_el0; " \ - "adrp %0, :gottprel:" #x "; " \ - "ldr %0, [%0, #:gottprel_lo12:" #x "]; " \ - "add %0, %0, %1" \ - : "=r" (__result), "=r" (__t)); \ - (int *) (__result); }) - -#define TLS_LE(x) \ - ({ register unsigned long __result asm ("x0"); \ - asm ("mrs %0, tpidr_el0; " \ - "add %0, %0, :tprel_hi12:" #x "; " \ - "add %0, %0, :tprel_lo12_nc:" #x \ - : "=r" (__result)); \ - (int *) (__result); }) 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; }) diff --git a/sysdeps/arc/tls-macros.h b/sysdeps/arc/tls-macros.h deleted file mode 100644 index b0003d8dc9..0000000000 --- a/sysdeps/arc/tls-macros.h +++ /dev/null @@ -1,47 +0,0 @@ -/* Macros to support TLS testing in times of missing compiler support. ARC version. - Copyright (C) 2020-2021 Free Software Foundation, Inc. - - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see - <https://www.gnu.org/licenses/>. */ - - -/* For now. */ -#define TLS_LD(x) TLS_IE(x) - -#define TLS_GD(x) \ - ({ void *__result; \ - __asm__ ("add r0, pcl, @" #x "@tlsgd \n" \ - ".tls_gd_ld " #x "`bl __tls_get_addr@plt \n" \ - "mov %0, r0 \n" \ - : "=&r" (__result) \ - ::"r0","r1","r2","r3","r4","r5","r6","r7", \ - "r8","r9","r10","r11","r12"); \ - __result; }) - -#define TLS_LE(x) \ - ({ void *__result; \ - void *tp = __builtin_thread_pointer (); \ - __asm__ ("add %0, %1, @" #x "@tpoff \n" \ - : "=r" (__result) : "r"(tp)); \ - __result; }) - -#define TLS_IE(x) \ - ({ void *__result; \ - void *tp = __builtin_thread_pointer (); \ - __asm__ ("ld %0, [pcl, @" #x "@tlsie] \n" \ - "add %0, %1, %0 \n" \ - : "=&r" (__result) : "r" (tp)); \ - __result; }) diff --git a/sysdeps/arm/tls-macros.h b/sysdeps/arm/tls-macros.h deleted file mode 100644 index 25cd84931b..0000000000 --- a/sysdeps/arm/tls-macros.h +++ /dev/null @@ -1,72 +0,0 @@ -#include <sysdep.h> /* For ARCH_HAS_T2. */ - -#ifdef __thumb2__ -# define ARM_PC_OFFSET "4" -#else -# define ARM_PC_OFFSET "8" -#endif - -/* Returns the address of data containing ".word SYMBOL(RELOC)". */ -#if defined (ARCH_HAS_T2) && !defined (PIC) -# define GET_SPECIAL_RELOC(symbol, reloc) \ - ({ \ - int *__##symbol##_rodata; \ - asm ("movw %0, #:lower16:1f\n" \ - "movt %0, #:upper16:1f\n" \ - ".pushsection .rodata.cst4, \"aM\", %%progbits, 4\n" \ - ".balign 4\n" \ - "1: .word " #symbol "(" #reloc ")\n" \ - ".popsection" \ - : "=r" (__##symbol##_rodata)); \ - __##symbol##_rodata; \ - }) -#elif defined (ARCH_HAS_T2) && defined (PIC) && ARM_PCREL_MOVW_OK -# define GET_SPECIAL_RELOC(symbol, reloc) \ - ({ \ - int *__##symbol##_rodata; \ - asm ("movw %0, #:lower16:1f - 2f - " ARM_PC_OFFSET "\n" \ - "movt %0, #:upper16:1f - 2f - " ARM_PC_OFFSET "\n" \ - ".pushsection .rodata.cst4, \"aM\", %%progbits, 4\n" \ - ".balign 4\n" \ - "1: .word " #symbol "(" #reloc ")\n" \ - ".popsection\n" \ - "2: add %0, %0, pc" \ - : "=r" (__##symbol##_rodata)); \ - __##symbol##_rodata; \ - }) -#else -# define GET_SPECIAL_RELOC(symbol, reloc) \ - ({ \ - int *__##symbol##_rodata; \ - asm ("adr %0, 1f\n" \ - "b 2f\n" \ - ".balign 4\n" \ - "1: .word " #symbol "(" #reloc ")\n" \ - "2:" \ - : "=r" (__##symbol##_rodata)); \ - __##symbol##_rodata; \ - }) -#endif - -/* Returns the pointer value (SYMBOL(RELOC) + pc - PC_OFS). */ -#define GET_SPECIAL_PCREL(symbol, reloc) \ - ({ \ - int *__##symbol##_rodata = GET_SPECIAL_RELOC (symbol, reloc); \ - (void *) ((int) __##symbol##_rodata + *__##symbol##_rodata); \ - }) - -#define TLS_LE(x) \ - (__builtin_thread_pointer () + *GET_SPECIAL_RELOC (x, tpoff)) - -#define TLS_IE(x) \ - ((int *) (__builtin_thread_pointer () \ - + *(int *) GET_SPECIAL_PCREL (x, gottpoff))) - -extern void *__tls_get_addr (void *); - -#define TLS_LD(x) \ - ((int *) (__tls_get_addr (GET_SPECIAL_PCREL (x, tlsldm)) \ - + *GET_SPECIAL_RELOC (x, tlsldo))) - -#define TLS_GD(x) \ - ((int *) __tls_get_addr (GET_SPECIAL_PCREL (x, tlsgd))) diff --git a/sysdeps/csky/abiv2/tls-macros.h b/sysdeps/csky/abiv2/tls-macros.h deleted file mode 100644 index 57ed1e74c6..0000000000 --- a/sysdeps/csky/abiv2/tls-macros.h +++ /dev/null @@ -1,55 +0,0 @@ -/* Macros for accessing thread-local storage. C-SKY ABIV2 version. - Copyright (C) 2018-2021 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see - <https://www.gnu.org/licenses/>. */ - -# define TLS_LE(x) \ - ({ int *__result; \ - __asm__ ("lrw %0, " #x "@TPOFF\n\t" \ - "add %0, tls, %0" \ - : "=&r" (__result)); \ - __result; }) - -# define TLS_IE(x) \ - ({ int *__result; \ - __asm__ ("grs a1, 1f\n" \ - "1:\tlrw %0, " #x "@GOTTPOFF\n\t" \ - "ldr.w %0, (a1, %0 << 0)\n\t" \ - "add %0, tls, %0" \ - : "=&r" (__result): : "a1"); \ - __result; }) - -# define TLS_LD(x) \ - ({ char *__result; \ - int __offset; \ - extern void *__tls_get_addr (void *); \ - __asm__ ("grs a1, 1f\n" \ - "1:\tlrw %0, " #x "@TLSLDM32;\n\t" \ - "add %0, a1, %0" \ - : "=r" (__result) : : "a1"); \ - __result = (char *)__tls_get_addr (__result); \ - __asm__ ("lrw %0, " #x "@TLSLDO32" \ - : "=r" (__offset)); \ - (int *) (__result + __offset); }) - -# define TLS_GD(x) \ - ({ int *__result; \ - extern void *__tls_get_addr (void *); \ - __asm__ ("grs a1, 1f\n" \ - "1:\tlrw %0, " #x "@TLSGD32\n\t" \ - "add %0, a1, %0" \ - : "=r" (__result) : : "a1"); \ - (int *)__tls_get_addr (__result); }) diff --git a/sysdeps/generic/tls-macros.h b/sysdeps/generic/tls-macros.h deleted file mode 100644 index 0a08f7c145..0000000000 --- a/sysdeps/generic/tls-macros.h +++ /dev/null @@ -1,12 +0,0 @@ -/* Macros to support TLS testing in times of missing compiler support. - Stub version. - - These macros should yield int * expressions for the TLS symbol X - accessed using the various TLS access models. Macros for some machines - are defined in elf/tls-macros.h, but ports can instead provide this file. - -#define TLS_LE(x) -#define TLS_IE(x) -#define TLS_LD(x) -#define TLS_GD(x) -*/ diff --git a/sysdeps/hppa/tls-macros.h b/sysdeps/hppa/tls-macros.h deleted file mode 100644 index 38edb1b72c..0000000000 --- a/sysdeps/hppa/tls-macros.h +++ /dev/null @@ -1,114 +0,0 @@ -/* TLS Access Macros for HP PARISC Linux */ - -/* HPPA Local Exec TLS access. */ -#define TLS_LE(x) \ - ({ int * __result; \ - unsigned long __tmp; \ - asm ( \ - " mfctl %%cr27, %1\n" \ - " addil LR'" #x "-$tls_leoff$, %1\n" \ - " ldo RR'" #x "-$tls_leoff$(%%r1), %0\n" \ - : "=r" (__result), "=r" (__tmp) \ - : \ - : "r1" ); \ - __result; \ - }) - -/* HPPA Initial Exec TLS access. */ -#ifdef PIC -# define TLS_IE(x) \ - ({ int * __result; \ - unsigned long __tmp, __tmp2; \ - asm ( \ - " mfctl %%cr27, %1\n" \ - " addil LT'" #x "-$tls_ieoff$, %%r19\n" \ - " ldw RT'" #x "-$tls_ieoff$(%%r1), %2\n" \ - " add %1, %2, %0\n" \ - : "=r" (__result), "=r" (__tmp), "=r" (__tmp2) \ - : \ - : "r1" ); \ - __result; \ - }) -#else -# define TLS_IE(x) \ - ({ int * __result; \ - unsigned long __tmp, __tmp2; \ - asm ( \ - " mfctl %%cr27, %1\n" \ - " addil LR'" #x "-$tls_ieoff$, %%r27\n" \ - " ldw RR'" #x "-$tls_ieoff$(%%r1), %2\n" \ - " add %1, %2, %0\n" \ - : "=r" (__result), "=r" (__tmp), "=r" (__tmp2) \ - : \ - : "r1" ); \ - __result; \ - }) -#endif - -#ifdef PIC -/* HPPA Local Dynamic TLS access. */ -# define TLS_LD(x) \ - ({ int * __result; \ - asm ( \ - " copy %%r19, %%r4\n" \ - " addil LT'" #x "-$tls_ldidx$, %%r19\n" \ - " bl __tls_get_addr, %%r2\n" \ - " ldo RT'" #x "-$tls_ldidx$(%%r1), %%r26\n" \ - " addil LR'" #x "-$tls_dtpoff$, %%r28\n" \ - " ldo RR'" #x "-$tls_dtpoff$(%%r1), %0\n" \ - " copy %%r4, %%r19\n" \ - : "=r" (__result) \ - : \ - : "r1", "r2", "r4", "r20", "r21", "r22", "r23", "r24", \ - "r25", "r26", "r28", "r29", "r31" ); \ - __result; \ - }) -#else -# define TLS_LD(x) \ - ({ int * __result; \ - asm ( \ - " addil LR'" #x "-$tls_ldidx$, %%r27\n" \ - " bl __tls_get_addr, %%r2\n" \ - " ldo RR'" #x "-$tls_ldidx$(%%r1), %%r26\n" \ - " addil LR'" #x "-$tls_dtpoff$, %%r28\n" \ - " ldo RR'" #x "-$tls_dtpoff$(%%r1), %0\n" \ - : "=r" (__result) \ - : \ - : "r1", "r2", "r20", "r21", "r22", "r23", "r24", \ - "r25", "r26", "r28", "r29", "r31" ); \ - __result; \ - }) -#endif - -/* HPPA General Dynamic TLS access. */ -#ifdef PIC -# define TLS_GD(x) \ - ({ int * __result; \ - asm ( \ - " copy %%r19, %%r4\n" \ - " addil LT'" #x "-$tls_gdidx$, %%r19\n" \ - " bl __tls_get_addr, %%r2\n" \ - " ldo RT'" #x "-$tls_gdidx$(%%r1), %%r26\n" \ - " copy %%r28, %0\n" \ - " copy %%r4, %%r19\n" \ - : "=r" (__result) \ - : \ - : "r1", "r2", "r4", "r20", "r21", "r22", "r23", "r24", \ - "r25", "r26", "r28", "r29", "r31" ); \ - __result; \ - }) -#else -# define TLS_GD(x) \ - ({ int * __result; \ - asm ( \ - " addil LR'" #x "-$tls_gdidx$, %%r27\n" \ - " bl __tls_get_addr, %%r2\n" \ - " ldo RR'" #x "-$tls_gdidx$(%%r1), %%r26\n" \ - " copy %%r28, %0\n" \ - : "=r" (__result) \ - : \ - : "r1", "r2", "r20", "r21", "r22", "r23", "r24", \ - "r25", "r26", "r28", "r29", "r31" ); \ - __result; \ - }) -#endif diff --git a/sysdeps/i386/tls-macros.h b/sysdeps/i386/tls-macros.h deleted file mode 100644 index 9c1303dc45..0000000000 --- a/sysdeps/i386/tls-macros.h +++ /dev/null @@ -1,47 +0,0 @@ -#define TLS_LE(x) \ - ({ int *__l; \ - asm ("movl %%gs:0,%0\n\t" \ - "subl $" #x "@tpoff,%0" \ - : "=r" (__l)); \ - __l; }) - -#define TLS_IE(x) \ - ({ int *__l, __b; \ - asm ("call 1f\n\t" \ - ".subsection 1\n" \ - "1:\tmovl (%%esp), %%ebx\n\t" \ - "ret\n\t" \ - ".previous\n\t" \ - "addl $_GLOBAL_OFFSET_TABLE_, %%ebx\n\t" \ - "movl |
