mirror of git://sourceware.org/git/glibc.git
Fix two stray cases using #ifdef vs #if for TLS_TCB_AT_TP.
This commit is contained in:
parent
aa4de9cea5
commit
d7329d4b4d
|
|
@ -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>
|
2014-03-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
|
* sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
|
||||||
|
|
|
||||||
|
|
@ -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
|
performed in 'get_cached_stack'. This way we avoid doing this if
|
||||||
the stack freshly allocated with 'mmap'. */
|
the stack freshly allocated with 'mmap'. */
|
||||||
|
|
||||||
#ifdef TLS_TCB_AT_TP
|
#if TLS_TCB_AT_TP
|
||||||
/* Reference to the TCB itself. */
|
/* Reference to the TCB itself. */
|
||||||
pd->header.self = pd;
|
pd->header.self = pd;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ static int
|
||||||
create_thread (struct pthread *pd, const struct pthread_attr *attr,
|
create_thread (struct pthread *pd, const struct pthread_attr *attr,
|
||||||
STACK_VARIABLES_PARMS)
|
STACK_VARIABLES_PARMS)
|
||||||
{
|
{
|
||||||
#ifdef TLS_TCB_AT_TP
|
#if TLS_TCB_AT_TP
|
||||||
assert (pd->header.tcb != NULL);
|
assert (pd->header.tcb != NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue