From e708e2af80f403ba868d5cd095bd87913fc88c56 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 19 Mar 2018 01:53:45 +0100 Subject: Remove ENABLE_TLS define * Makefile (CPPFLAGS): Remove -DENABLE_TLS. * pthread/pt-alloc.c: Remove ENABLE_TLS condition. * pthread/pt-create.c: Likewise. * pthread/pt-internal.h: Likewise. --- pthread/pt-alloc.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pthread/pt-alloc.c') diff --git a/pthread/pt-alloc.c b/pthread/pt-alloc.c index f4634de..22a3000 100644 --- a/pthread/pt-alloc.c +++ b/pthread/pt-alloc.c @@ -69,9 +69,7 @@ initialize_pthread (struct __pthread *new) memset (&new->res_state, '\0', sizeof (new->res_state)); -#ifdef ENABLE_TLS new->tcb = NULL; -#endif new->next = 0; new->prevp = 0; @@ -111,13 +109,11 @@ __pthread_alloc (struct __pthread **pthread) if (new) { -#ifdef ENABLE_TLS if (new->tcb) { /* Drop old values */ _dl_deallocate_tls (new->tcb, 1); } -#endif /* ENABLE_TLS */ err = initialize_pthread (new); if (! err) -- cgit v1.2.3