Ticket #24664: tls_configure_fix.diff
File tls_configure_fix.diff, 3.2 KB (added by howarth@…, 14 years ago) |
---|
-
libgomp/configure
old new 15379 15379 /* end confdefs.h. */ 15380 15380 #include <pthread.h> 15381 15381 __thread int a; 15382 static int *a_in_other_thread; 15382 int *a_in_other_thread; 15383 int *a_in_main_thread; 15383 15384 static void * 15384 15385 thread_func (void *arg) 15385 15386 { … … 15391 15392 { 15392 15393 pthread_t thread; 15393 15394 void *thread_retval; 15394 int *a_in_main_thread;15395 a_in_main_thread = &a; 15395 15396 if (pthread_create (&thread, (pthread_attr_t *)0, 15396 15397 thread_func, (void *)0)) 15397 15398 return 0; 15398 a_in_main_thread = &a;15399 15399 if (pthread_join (thread, &thread_retval)) 15400 15400 return 0; 15401 15401 return (a_in_other_thread == a_in_main_thread); -
libjava/configure
old new 24341 24341 /* end confdefs.h. */ 24342 24342 #include <pthread.h> 24343 24343 __thread int a; 24344 static int *a_in_other_thread; 24344 int *a_in_other_thread; 24345 int *a_in_main_thread; 24345 24346 static void * 24346 24347 thread_func (void *arg) 24347 24348 { … … 24353 24354 { 24354 24355 pthread_t thread; 24355 24356 void *thread_retval; 24356 int *a_in_main_thread;24357 a_in_main_thread = &a; 24357 24358 if (pthread_create (&thread, (pthread_attr_t *)0, 24358 24359 thread_func, (void *)0)) 24359 24360 return 0; 24360 a_in_main_thread = &a;24361 24361 if (pthread_join (thread, &thread_retval)) 24362 24362 return 0; 24363 24363 return (a_in_other_thread == a_in_main_thread); -
libstdc++-v3/configure
old new 25572 25572 /* end confdefs.h. */ 25573 25573 #include <pthread.h> 25574 25574 __thread int a; 25575 static int *a_in_other_thread; 25575 int *a_in_other_thread; 25576 int *a_in_main_thread; 25576 25577 static void * 25577 25578 thread_func (void *arg) 25578 25579 { … … 25584 25585 { 25585 25586 pthread_t thread; 25586 25587 void *thread_retval; 25587 int *a_in_main_thread;25588 a_in_main_thread = &a; 25588 25589 if (pthread_create (&thread, (pthread_attr_t *)0, 25589 25590 thread_func, (void *)0)) 25590 25591 return 0; 25591 a_in_main_thread = &a;25592 25592 if (pthread_join (thread, &thread_retval)) 25593 25593 return 0; 25594 25594 return (a_in_other_thread == a_in_main_thread); … … 44510 44510 /* end confdefs.h. */ 44511 44511 #include <pthread.h> 44512 44512 __thread int a; 44513 static int *a_in_other_thread; 44513 int *a_in_other_thread; 44514 int *a_in_main_thread; 44514 44515 static void * 44515 44516 thread_func (void *arg) 44516 44517 { … … 44522 44523 { 44523 44524 pthread_t thread; 44524 44525 void *thread_retval; 44525 int *a_in_main_thread;44526 a_in_main_thread = &a; 44526 44527 if (pthread_create (&thread, (pthread_attr_t *)0, 44527 44528 thread_func, (void *)0)) 44528 44529 return 0; 44529 a_in_main_thread = &a;44530 44530 if (pthread_join (thread, &thread_retval)) 44531 44531 return 0; 44532 44532 return (a_in_other_thread == a_in_main_thread); … … 50595 50595 /* end confdefs.h. */ 50596 50596 #include <pthread.h> 50597 50597 __thread int a; 50598 static int *a_in_other_thread; 50598 int *a_in_other_thread; 50599 int *a_in_main_thread; 50599 50600 static void * 50600 50601 thread_func (void *arg) 50601 50602 { … … 50607 50608 { 50608 50609 pthread_t thread; 50609 50610 void *thread_retval; 50610 int *a_in_main_thread;50611 a_in_main_thread = &a; 50611 50612 if (pthread_create (&thread, (pthread_attr_t *)0, 50612 50613 thread_func, (void *)0)) 50613 50614 return 0; 50614 a_in_main_thread = &a;50615 50615 if (pthread_join (thread, &thread_retval)) 50616 50616 return 0; 50617 50617 return (a_in_other_thread == a_in_main_thread);