summary refs log tree commit diff
path: root/debug/warning-nop.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-03-01 00:42:55 +0000
committerRoland McGrath <roland@gnu.org>2005-03-01 00:42:55 +0000
commit1104e1f381c257f8928eff51aa7c951126c3d716 (patch)
tree763464c179bb0f8fc15b4df5450a179f750626e0 /debug/warning-nop.c
parent8b8b797292218050ff191ccb90da498862afd0f2 (diff)
downloadglibc-1104e1f381c257f8928eff51aa7c951126c3d716.tar.gz
glibc-1104e1f381c257f8928eff51aa7c951126c3d716.tar.xz
glibc-1104e1f381c257f8928eff51aa7c951126c3d716.zip
2005-02-28 Roland McGrath <roland@redhat.com>
	* debug/warning-nop.c (__nop): Rename to nop, make it static.
	(__warndecl): Use alias attribute directly, instead of strong_alias
	macro.  Add attribute_hidden.
Diffstat (limited to 'debug/warning-nop.c')
-rw-r--r--debug/warning-nop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/debug/warning-nop.c b/debug/warning-nop.c
index 84de3a9f17..b4ebbac4dd 100644
--- a/debug/warning-nop.c
+++ b/debug/warning-nop.c
@@ -19,7 +19,8 @@
 
 #include <sys/cdefs.h>
 
-void __nop (void)
+static void
+nop (void)
 {
 }
 
@@ -27,7 +28,8 @@ void __nop (void)
 
 #undef __warndecl
 #define __warndecl(name, msg) \
-  strong_alias (__nop, name) link_warning (name, msg)
+  extern void name (void) __attribute__ ((alias ("nop"))) attribute_hidden; \
+  link_warning (name, msg)
 
 #undef	__USE_FORTIFY_LEVEL
 #define __USE_FORTIFY_LEVEL 99