remove dead store from static __init_tls
authorRich Felker <dalias@aerifal.cx>
Thu, 23 Apr 2015 21:37:06 +0000 (17:37 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 23 Apr 2015 21:37:06 +0000 (17:37 -0400)
commit dab441aea240f3b7c18a26d2ef51979ea36c301c, which made thread
pointer init mandatory for all programs, rendered this store obsolete
by removing the early-return path for static programs with no TLS.

src/env/__init_tls.c

index a5074fbab4860b0a32097b21323d8bc51cacbc54..b4df2ba58b9f265b243726de410baef9cda11a78 100644 (file)
@@ -77,8 +77,6 @@ void __init_tls(size_t *aux)
        size_t base = 0;
        void *mem;
 
-       libc.tls_size = sizeof(struct pthread);
-
        for (p=(void *)aux[AT_PHDR],n=aux[AT_PHNUM]; n; n--,p+=aux[AT_PHENT]) {
                phdr = (void *)p;
                if (phdr->p_type == PT_PHDR)