]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix two stray cases using #ifdef vs #if for TLS_TCB_AT_TP.
authorRoland McGrath <roland@hack.frob.com>
Fri, 14 Mar 2014 17:46:38 +0000 (10:46 -0700)
committerRoland McGrath <roland@hack.frob.com>
Fri, 14 Mar 2014 17:46:38 +0000 (10:46 -0700)
ChangeLog
nptl/pthread_create.c
nptl/sysdeps/pthread/createthread.c

index fef3cf5cb5132d891d83b498752ec3bf8dac1e68..ae102928a6520d49d3a3a66bc97fd796d4bb3ff7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-03-14  Roland McGrath  <roland@hack.frob.com>
+
+       * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
+       with #if rather than #ifdef.
+       * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
+
 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
index cee0806d52e8f675fb1a47b1392b7ca5d6cde1fe..38e69cb496bcf5a19e9d3304460ef9dd4af7ffd8 100644 (file)
@@ -496,7 +496,7 @@ __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
+#if TLS_TCB_AT_TP
   /* Reference to the TCB itself.  */
   pd->header.self = pd;
 
index 93f93eebd4ab3a21013637da42331530a824f809..e1856f7b1c5d827e7b96b3a5000493ca0bf7d7e9 100644 (file)
@@ -147,7 +147,7 @@ static int
 create_thread (struct pthread *pd, const struct pthread_attr *attr,
               STACK_VARIABLES_PARMS)
 {
-#ifdef TLS_TCB_AT_TP
+#if TLS_TCB_AT_TP
   assert (pd->header.tcb != NULL);
 #endif