about summary refs log tree commit diff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index c1da67db79..58116f7925 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -344,10 +344,10 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg)
      performed in 'get_cached_stack'.  This way we avoid doing this if
      the stack freshly allocated with 'mmap'.  */
 
+#ifdef TLS_TCB_AT_TP
   /* Reference to the TCB itself.  */
   pd->self = pd;
 
-#ifdef TLS_TCB_AT_TP
   /* Self-reference for TLS.  */
   pd->tcb = pd;
 #endif