From ed10e944ac7f9b4d55dc130987274a2799a115b1 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 30 Nov 2016 05:11:00 +0100 Subject: NONTLS_INIT_TP is never defined, remove dead code --- libpthread/linuxthreads/sysdeps/ia64/tls.h | 20 -------------------- libpthread/nptl/sysdeps/generic/libc-tls.c | 11 ----------- 2 files changed, 31 deletions(-) diff --git a/libpthread/linuxthreads/sysdeps/ia64/tls.h b/libpthread/linuxthreads/sysdeps/ia64/tls.h index a78f0ec7a..ffc8f77dc 100644 --- a/libpthread/linuxthreads/sysdeps/ia64/tls.h +++ b/libpthread/linuxthreads/sysdeps/ia64/tls.h @@ -113,26 +113,6 @@ typedef struct # endif -#else - -# ifndef __ASSEMBLER__ - -typedef struct -{ - void *tcb; - dtv_t *dtv; - void *self; - int multiple_threads; -} tcbhead_t; - -# define NONTLS_INIT_TP \ - do { \ - static const tcbhead_t nontls_init_tp = { .multiple_threads = 0 }; \ - __thread_self = (__typeof (__thread_self)) &nontls_init_tp; \ - } while (0) - -#endif - #endif /* USE_TLS */ #endif /* tls.h */ diff --git a/libpthread/nptl/sysdeps/generic/libc-tls.c b/libpthread/nptl/sysdeps/generic/libc-tls.c index c7bd34713..58e77ff10 100644 --- a/libpthread/nptl/sysdeps/generic/libc-tls.c +++ b/libpthread/nptl/sysdeps/generic/libc-tls.c @@ -252,15 +252,4 @@ __pthread_initialize_minimal (void) __libc_setup_tls (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN); } -#elif defined NONTLS_INIT_TP - -/* This is the minimal initialization function used when libpthread is - not used. */ -void -__attribute__ ((weak)) -__pthread_initialize_minimal (void) -{ - NONTLS_INIT_TP; -} - #endif -- cgit v1.2.3