about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-24 16:02:42 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-24 16:02:42 +0000
commit5408c7570131baaac58facae8aa091195ab3492d (patch)
tree81552d3b6aea342af9f6e69dc291c97b16ab6f20
parentf8f7e09075d5f9b2b8aec8b757bd372aa8afa26c (diff)
downloadglibc-5408c7570131baaac58facae8aa091195ab3492d.tar.gz
glibc-5408c7570131baaac58facae8aa091195ab3492d.tar.xz
glibc-5408c7570131baaac58facae8aa091195ab3492d.zip
Update.
1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* misc/sys/cdefs.h (__REDIRECT): Handle systems with non-empty
	__USER_LABEL_PREFIX__.
	(__ASMNAME, __ASMNAME2): New macros.
-rw-r--r--ChangeLog6
-rw-r--r--linuxthreads/Makefile2
-rw-r--r--misc/sys/cdefs.h10
3 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 35043c0908..e2a7ce5caf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1998-04-23  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+
+	* misc/sys/cdefs.h (__REDIRECT): Handle systems with non-empty
+	__USER_LABEL_PREFIX__.
+	(__ASMNAME, __ASMNAME2): New macros.
+
 1998-04-24  Ulrich Drepper  <drepper@cygnus.com>
 
 	* elf/dl-load.c: Include sys/param.h for MAX.
diff --git a/linuxthreads/Makefile b/linuxthreads/Makefile
index cdfe06c66e..d75cb73631 100644
--- a/linuxthreads/Makefile
+++ b/linuxthreads/Makefile
@@ -21,7 +21,7 @@
 #
 subdir	:= linuxthreads
 
-libpthread-version=0.7
+linuxthreads-version=0.7
 
 headers := pthread.h semaphore.h bits/semaphore.h
 distribute := internals.h queue.h restart.h spinlock.h
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index c0c442e011..1ced090251 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 93, 94, 95, 96, 97, 98 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
@@ -107,14 +107,16 @@
 
 #if defined __GNUC__ && __GNUC__ >= 2
 
-# define __REDIRECT(name, proto, asname) name proto __asm__ (#asname)
+# define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias))
+# define __ASMNAME(cname)  __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
+# define __ASMNAME2(prefix, cname) __STRING (prefix) cname
 
 /*
 #elif __SOME_OTHER_COMPILER__
 
 # define __attribute__(xyz)
-# define __ALIAS(name, proto, asname) name proto; \
-                  _Pragma("let " #name " = " #asname)
+# define __REDIRECT(name, proto, alias) name proto; \
+	_Pragma("let " #name " = " #alias)
 */
 #endif