CVS 19980521: PATCH for `limited scope' warning

Manfred Hollstein manfred@s-direktnet.de
Tue May 26 03:26:00 GMT 1998


On Sat, 23 May 1998, 23:29:27, law@cygnus.com wrote:

 > 
 >   In message < 13669.27549.746281.774309@saturn.s-direktnet.de >you write:
 >   > This small patch reduces the amount of warnings seen on
 >   > i586-linux-gnulibc1 by 18.
 >   > 
 >   > 1998-05-22  Manfred Hollstein  <manfred@s-direktnet.de>
 >   > 
 >   > 	* toplev.h (tree_node): Provide global declaration to avoid
 >   > 	`limited scope' warnings.
 > Thanks.  I was wondering who'd get to this one first :-)
 > 
 > I've installed this patch.

The same is necessary for "struct rtx_def":

1998-05-26  Manfred Hollstein  <manfred@s-direktnet.de>

	* toplev.h (rtx_def): Provide global declaration to avoid
	`limited scope' warnings.

diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-19980525.orig/gcc/toplev.h egcs-19980525/gcc/toplev.h
--- egcs-19980525.orig/gcc/toplev.h	Mon May 25 11:29:39 1998
+++ egcs-19980525/gcc/toplev.h	Tue May 26 12:04:24 1998
@@ -7,6 +7,7 @@
 
 #ifdef __STDC__
 union tree_node;
+struct rtx_def;
 #endif
 
 extern int count_error			PROTO ((int));



More information about the Gcc-bugs mailing list