about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-21 20:32:34 +0000
committerRoland McGrath <roland@gnu.org>2001-08-21 20:32:34 +0000
commit88e7ba6a07c407487aa279e9ac88eef7b5d14fcc (patch)
tree2776d989acbf543f039827b5f0befe9c20a93e06
parent0b32ff01b855437f26d90a47ffc619fad2f6917f (diff)
downloadglibc-88e7ba6a07c407487aa279e9ac88eef7b5d14fcc.tar.gz
glibc-88e7ba6a07c407487aa279e9ac88eef7b5d14fcc.tar.xz
glibc-88e7ba6a07c407487aa279e9ac88eef7b5d14fcc.zip
* sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
	as a macro, not an extern inline function.

	* hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
	* Versions.def (libc): Add GLIBC_2.2.5 set.
	* hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
	(__hurd_fail): Use that instead of _EXTERN_INLINE in decl.

2001-08-20  Roland McGrath  <roland@frob.com>

	* hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
	(__hurd_file_name_split, __hurd_directory_name_split): Likewise.
-rw-r--r--ChangeLog15
-rw-r--r--sysdeps/mach/i386/machine-sp.h17
2 files changed, 20 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b5bc4288b..783c73f3ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2001-08-21  Roland McGrath  <roland@frob.com>
+
+	* sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
+	as a macro, not an extern inline function.
+
+	* hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
+	* Versions.def (libc): Add GLIBC_2.2.5 set.
+	* hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
+	(__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
+
+2001-08-20  Roland McGrath  <roland@frob.com>
+
+	* hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
+	(__hurd_file_name_split, __hurd_directory_name_split): Likewise.
+
 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
 
 	* string/bits/string2.h: Remove strnlen optimization here.
diff --git a/sysdeps/mach/i386/machine-sp.h b/sysdeps/mach/i386/machine-sp.h
index 483a534df6..536f690217 100644
--- a/sysdeps/mach/i386/machine-sp.h
+++ b/sysdeps/mach/i386/machine-sp.h
@@ -22,17 +22,10 @@
 
 /* Return the current stack pointer.  */
 
-#ifndef _EXTERN_INLINE
-#define _EXTERN_INLINE extern __inline
-#endif
-
-extern void *__thread_stack_pointer (void);
-_EXTERN_INLINE void *
-__thread_stack_pointer (void)
-{
-  void *__sp__;
-  __asm__ ("movl %%esp, %0" : "=r" (__sp__));
-  return __sp__;
-}
+#define __thread_stack_pointer() ({					      \
+  void *__sp__;								      \
+  __asm__ ("movl %%esp, %0" : "=r" (__sp__));				      \
+  __sp__;								      \
+})
 
 #endif	/* machine-sp.h */