mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
* pthread_create.c (start_thread): Don't use setjmp inside __builtin_expect to work around gcc bug.
This commit is contained in:
@@ -221,7 +221,8 @@ start_thread (void *arg)
|
||||
|
||||
/* This is where the try/finally block should be created. For
|
||||
compilers without that support we do use setjmp. */
|
||||
if (__builtin_expect (setjmp (pd->cancelbuf) == 0, 1))
|
||||
int not_first_call = setjmp (pd->cancelbuf);
|
||||
if (__builtin_expect (! not_first_call, 1))
|
||||
{
|
||||
/* Run the code the user provided. */
|
||||
#ifdef CALL_THREAD_FCT
|
||||
|
||||
Reference in New Issue
Block a user