From 18d009ca00eea5127f162b3179a529516a8445d2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 27 Mar 2003 21:14:41 +0000 Subject: Update. * pthread_create.c (start_thread): Don't use setjmp inside __builtin_expect to work around gcc bug. --- nptl/pthread_create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nptl/pthread_create.c') diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index 41218745d6..8598e4c763 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -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 -- cgit v1.2.1