From 730bee725a770b543181424b52203dd1634ab5d1 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 3 Aug 2011 19:45:21 -0400 Subject: fix static linking dependency bloat with cancellation previously, pthread_cleanup_push/pop were pulling in all of pthread_create due to dependency on the __pthread_unwind_next function. this was not needed, as cancellation cleanup handlers can never be called unless pthread_exit or pthread_cancel is reachable. --- src/thread/pthread_create.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/thread/pthread_create.c') diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index adef510c..a6afd1e5 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c @@ -8,12 +8,7 @@ weak_alias(dummy_0, __synccall_lock); weak_alias(dummy_0, __synccall_unlock); weak_alias(dummy_0, __pthread_tsd_run_dtors); -#ifdef __pthread_unwind_next -#undef __pthread_unwind_next -#define __pthread_unwind_next __pthread_unwind_next_3 -#endif - -void __pthread_unwind_next(struct __ptcb *cb) +void __pthread_do_unwind(struct __ptcb *cb) { pthread_t self = pthread_self(); int n; -- cgit v1.2.1