summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2009-06-22 22:37:38 +0200
committerThomas Schwinge <tschwinge@gnu.org>2009-06-22 23:11:14 +0200
commit66e1606cdf6d7c535fa9036f13d90260af2a9b73 (patch)
treef763f926b727857b25e9ac643e75ebb4dbdd1fee
parent51839d398b0f9885a17ab5c0768b8dec4dd9eb79 (diff)
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.
-rw-r--r--sysdeps/l4/hurd/pt-sysdep.h9
-rw-r--r--sysdeps/mach/hurd/pt-sysdep.h4
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)
{