diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-01-05 10:55:15 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-01-05 10:55:15 +0000 |
commit | 73e9ae887fab0918165e49d783328c891c1b1bdb (patch) | |
tree | f20298d0dd2e59958be2e3fcd1cc708ae8c3bece /nptl/sysdeps/unix/sysv/linux/jmp-unwind.c | |
parent | a7f7b879fbe6fb58b670ad41d2b6e40f14730cb8 (diff) | |
download | glibc-73e9ae887fab0918165e49d783328c891c1b1bdb.tar.gz glibc-73e9ae887fab0918165e49d783328c891c1b1bdb.tar.xz glibc-73e9ae887fab0918165e49d783328c891c1b1bdb.zip |
Update.
2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile: New file.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/jmp-unwind.c')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/jmp-unwind.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c b/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c index 0fd3c9aa58..f0a290ae4b 100644 --- a/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c +++ b/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c @@ -1,5 +1,5 @@ -/* _longjmp_unwind -- Clean up stack frames unwound by longjmp. Linux version. - Copyright (C) 1995, 1997, 2002 Free Software Foundation, Inc. +/* Clean up stack frames unwound by longjmp. Linux version. + Copyright (C) 1995, 1997, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,7 +19,7 @@ #include <setjmp.h> #include <stddef.h> - +#include <pthread-functions.h> extern void __pthread_cleanup_upto (jmp_buf env, char *targetframe); #pragma weak __pthread_cleanup_upto @@ -28,6 +28,12 @@ extern void __pthread_cleanup_upto (jmp_buf env, char *targetframe); void _longjmp_unwind (jmp_buf env, int val) { - if (__pthread_cleanup_upto != NULL) - __pthread_cleanup_upto (env, __builtin_frame_address (0)); +#ifdef SHARED +# define fptr __libc_pthread_functions.ptr___pthread_cleanup_upto +#else +# define fptr __pthread_cleanup_upto +#endif + + if (fptr != NULL) + fptr (env, __builtin_frame_address (0)); } |