(start_thread): setjmp is expected to return 0.
authordrepper <drepper>
Fri, 14 Mar 2003 22:03:38 +0000 (22:03 +0000)
committerdrepper <drepper>
Fri, 14 Mar 2003 22:03:38 +0000 (22:03 +0000)
nptl/pthread_create.c

index 519d0c6..0eb7dc7 100644 (file)
@@ -221,7 +221,7 @@ start_thread (void *arg)
 
   /* This is where the try/finally block should be created.  For
      compilers without that support we do use setjmp.  */
-  if (setjmp (pd->cancelbuf) == 0)
+  if (__builtin_expect (setjmp (pd->cancelbuf) == 0, 1))
     {
       /* Run the code the user provided.  */
       THREAD_SETMEM (pd, result, pd->start_routine (pd->arg));