Skip to content

Commit

Permalink
NPTL: Move __libc_multiple_threads_ptr defn to nptl-init.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Nov 12, 2014
1 parent 24f4f82 commit c6aab2c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2014-11-12 Roland McGrath <roland@hack.frob.com>

* nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
(__libc_multiple_threads_ptr): Variable moved ...
* nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.

2014-11-12 Joseph Myers <joseph@codesourcery.com>

* conform/GlibcConform.pm: New file.
Expand Down
6 changes: 0 additions & 6 deletions nptl/createthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
#endif


#ifndef TLS_MULTIPLE_THREADS_IN_TCB
/* Pointer to the corresponding variable in libc. */
int *__libc_multiple_threads_ptr attribute_hidden;
#endif


static int
do_clone (struct pthread *pd, const struct pthread_attr *attr,
int clone_flags, int (*fct) (void *), STACK_VARIABLES_PARMS,
Expand Down
5 changes: 5 additions & 0 deletions nptl/nptl-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
#include <kernel-features.h>


#ifndef TLS_MULTIPLE_THREADS_IN_TCB
/* Pointer to the corresponding variable in libc. */
int *__libc_multiple_threads_ptr attribute_hidden;
#endif

/* Size and alignment of static TLS block. */
size_t __static_tls_size;
size_t __static_tls_align_m1;
Expand Down

0 comments on commit c6aab2c

Please sign in to comment.