From 66e1606cdf6d7c535fa9036f13d90260af2a9b73 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 22 Jun 2009 22:37:38 +0200 Subject: Fix inline usage for recent GCC versions. * sysdeps/l4/hurd/pt-sysdep.h (_pthread_self, __pthread_stack_dealloc): Use static inline instead of extern inline. * sysdeps/mach/hurd/pt-sysdep.h (__pthread_stack_dealloc): Likewise. --- sysdeps/l4/hurd/pt-sysdep.h | 9 ++++++--- sysdeps/mach/hurd/pt-sysdep.h | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/sysdeps/l4/hurd/pt-sysdep.h b/sysdeps/l4/hurd/pt-sysdep.h index 08bcd14..87303b6 100644 --- a/sysdeps/l4/hurd/pt-sysdep.h +++ b/sysdeps/l4/hurd/pt-sysdep.h @@ -1,5 +1,8 @@ /* Internal definitions for pthreads library. - Copyright (C) 2000, 2002, 2005, 2007, 2008 Free Software Foundation, Inc. + + Copyright (C) 2000, 2002, 2005, 2007, 2008, 2009 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 @@ -44,14 +47,14 @@ void *exception_area_va; \ l4_word_t my_errno; -extern inline struct __pthread * +static inline struct __pthread * __attribute__((__always_inline__)) _pthread_self (void) { return (struct __pthread *) l4_user_defined_handle (); } -extern inline void +static inline void __attribute__((__always_inline__)) __pthread_stack_dealloc (void *stackaddr, size_t stacksize) { diff --git a/sysdeps/mach/hurd/pt-sysdep.h b/sysdeps/mach/hurd/pt-sysdep.h index f14a136..d62264e 100644 --- a/sysdeps/mach/hurd/pt-sysdep.h +++ b/sysdeps/mach/hurd/pt-sysdep.h @@ -1,5 +1,5 @@ /* Internal defenitions for pthreads library. - Copyright (C) 2000, 2002, 2008 Free Software Foundation, Inc. + Copyright (C) 2000, 2002, 2008, 2009 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 @@ -53,7 +53,7 @@ thread; \ }) -extern inline void +static inline void __attribute__((__always_inline__)) __pthread_stack_dealloc (void *stackaddr, size_t stacksize) { -- cgit v1.2.3