NPTL: Move __libc_multiple_threads_ptr defn to nptl-init.c
authorRoland McGrath <roland@hack.frob.com>
Wed, 12 Nov 2014 22:50:09 +0000 (14:50 -0800)
committerRoland McGrath <roland@hack.frob.com>
Wed, 12 Nov 2014 22:52:31 +0000 (14:52 -0800)
ChangeLog
nptl/createthread.c
nptl/nptl-init.c

index d4c3406..f6fe1fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 0980a77..49442d9 100644 (file)
 #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,
index b7d2197..831d762 100644 (file)
 #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;