public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* one more visibility tweak
@ 2002-03-16 12:10 Andreas Jaeger
  2002-03-16 13:45 ` Ulrich Drepper
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Jaeger @ 2002-03-16 12:10 UTC (permalink / raw)
  To: GNU libc hacker


This fixes:

stdio.c:46: warning: `visibility' attribute directive ignored
stdio.c:47: warning: `visibility' attribute directive ignored
stdio.c:48: warning: `visibility' attribute directive ignored

It also removes duplicated code.

Ok to commit?

Andreas

2002-03-16  Andreas Jaeger  <aj@suse.de>

	* libio/stdio.c: Use INTVARDEF for internal symbols.

============================================================
Index: libio/stdio.c
--- libio/stdio.c	2002/03/13 02:05:39	1.11
+++ libio/stdio.c	2002/03/16 20:08:07
@@ -39,11 +39,7 @@ _IO_FILE *stderr = (FILE *) &_IO_2_1_std
 #undef _IO_stdout
 #undef _IO_stderr
 #ifdef _LIBC
-# define AL(name) AL2 (name, _IO_##name)
-# define AL2(name, al) \
-  extern __typeof (name) al __attribute__ ((alias (#name),		      \
-					    visibility ("hidden")))
-AL(stdin);
-AL(stdout);
-AL(stderr);
+INTVARDEF(stdin);
+INTVARDEF(stdout);
+INTVARDEF(stderr);
 #endif

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-17  9:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-16 12:10 one more visibility tweak Andreas Jaeger
2002-03-16 13:45 ` Ulrich Drepper
2002-03-16 22:40   ` Andreas Jaeger
2002-03-17  1:53     ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).