From 208f8d657fd3c8f6e2f5dfff0b0af68c6f099c49 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 8 Feb 2005 16:17:13 +0000 Subject: libpthread/ 2005-02-08 Neal H. Walfield * sysdeps/posix/pt-spin.c (__pthread_spin_lock): Make a weak alias to _pthread_spin_lock. * sysdeps/l4/hurd/pt-sysdep.h (_pthread_self): Add __always_inline__ attribute. (__pthread_stack_dealloc): Likewise. --- ChangeLog | 8 ++++++++ sysdeps/l4/hurd/pt-sysdep.h | 4 +++- sysdeps/posix/pt-spin.c | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 74db7b2..53af476 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-02-08 Neal H. Walfield + + * sysdeps/posix/pt-spin.c (__pthread_spin_lock): Make a weak alias + to _pthread_spin_lock. + * sysdeps/l4/hurd/pt-sysdep.h (_pthread_self): Add + __always_inline__ attribute. + (__pthread_stack_dealloc): Likewise. + 2005-01-12 Neal H. Walfield * sysdeps/l4/pt-thread-alloc.c: Replace assert with a compile time diff --git a/sysdeps/l4/hurd/pt-sysdep.h b/sysdeps/l4/hurd/pt-sysdep.h index 7e69d70..0b5abb7 100644 --- a/sysdeps/l4/hurd/pt-sysdep.h +++ b/sysdeps/l4/hurd/pt-sysdep.h @@ -1,5 +1,5 @@ /* Internal defenitions for pthreads library. - Copyright (C) 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 2000, 2002, 2005 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 @@ -33,12 +33,14 @@ l4_word_t my_errno; extern inline struct __pthread * +__attribute__((__always_inline__)) _pthread_self (void) { return (struct __pthread *) l4_user_defined_handle (); } extern inline void +__attribute__((__always_inline__)) __pthread_stack_dealloc (void *stackaddr, size_t stacksize) { /* XXX: can only implement this once we have a working memory manager. */ diff --git a/sysdeps/posix/pt-spin.c b/sysdeps/posix/pt-spin.c index cdc482c..26793b0 100644 --- a/sysdeps/posix/pt-spin.c +++ b/sysdeps/posix/pt-spin.c @@ -1,5 +1,5 @@ /* Spin locks. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2005 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 @@ -51,3 +51,4 @@ _pthread_spin_lock (__pthread_spinlock_t *lock) } weak_alias (_pthread_spin_lock, pthread_spin_lock); +weak_alias (_pthread_spin_lock, __pthread_spin_lock); -- cgit v1.2.3