Patch installed to eliminated another batch of redundant decls

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Fri Apr 13 14:15:00 GMT 2001


This one removed 650 redundant declaration warnings.  Bootstrapped on
solaris2.7.  I was a little worried about breaking things on other
platforms that used flag_pic even though solaris uses it heavily.  So
I also cross compiled to i686-pc-linux-gnu and powerpc-eabisim and
fixed a couple of nits.

Installed as obvious after the above testing.

Down to ~2650.  Having to start reaching higher for fruit soon. :-)


2001-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* Makefile.in (reg-stack.o): Depend on reload.h.
	(insn-attrtab.o): Depend on flags.h.

	* genattrtab (main): Include flags.h in insn-attrtab.c.

	* reg-stack.c: Include reload.h.

	* sparc.h (flag_pic): Delete redundant declaration.

	* output.h (flag_pic): Likewise.

	* tree.h (pedantic): Likewise.

diff -rup ../orig/egcs-CVS20010413/gcc/Makefile.in egcs-CVS20010413/gcc/Makefile.in
--- ../orig/egcs-CVS20010413/gcc/Makefile.in	Fri Apr 13 12:38:30 2001
+++ egcs-CVS20010413/gcc/Makefile.in	Fri Apr 13 16:21:48 2001
@@ -1557,7 +1557,7 @@ recog.o : recog.c $(CONFIG_H) $(SYSTEM_H
    $(REGS_H) $(RECOG_H) hard-reg-set.h flags.h insn-config.h $(INSN_ATTR_H) \
    real.h toplev.h output.h reload.h $(TM_P_H)
 reg-stack.o : reg-stack.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) $(RECOG_H) \
-   $(REGS_H) hard-reg-set.h flags.h insn-config.h toplev.h \
+   $(REGS_H) hard-reg-set.h flags.h insn-config.h toplev.h reload.h \
    varray.h function.h $(TM_P_H)
 predict.o: predict.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
    insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h \
@@ -1696,7 +1696,8 @@ s-peep : $(md_file) genpeep$(build_exeex
 	touch s-peep
 
 insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) $(REGS_H) real.h \
-    output.h $(INSN_ATTR_H) insn-config.h $(SYSTEM_H) toplev.h $(RECOG_H) $(TM_P_H)
+    output.h $(INSN_ATTR_H) insn-config.h $(SYSTEM_H) toplev.h $(RECOG_H) \
+	$(TM_P_H) flags.h
 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-attrtab.c
 
 insn-attr.h: s-attr ; @true
diff -rup ../orig/egcs-CVS20010413/gcc/config/sparc/sparc.h egcs-CVS20010413/gcc/config/sparc/sparc.h
--- ../orig/egcs-CVS20010413/gcc/config/sparc/sparc.h	Thu Apr  5 22:52:07 2001
+++ egcs-CVS20010413/gcc/config/sparc/sparc.h	Fri Apr 13 15:24:33 2001
@@ -3409,6 +3409,3 @@ do {									\
 
 #define DONT_ACCESS_GBLS_AFTER_EPILOGUE (flag_pic)
 
-/* Defined in flags.h, but insn-emit.c does not include flags.h.  */
-
-extern int flag_pic;
diff -rup ../orig/egcs-CVS20010413/gcc/genattrtab.c egcs-CVS20010413/gcc/genattrtab.c
--- ../orig/egcs-CVS20010413/gcc/genattrtab.c	Mon Mar 26 11:56:37 2001
+++ egcs-CVS20010413/gcc/genattrtab.c	Fri Apr 13 15:45:36 2001
@@ -6149,6 +6149,7 @@ from the machine description file `md'. 
   printf ("#include \"output.h\"\n");
   printf ("#include \"insn-attr.h\"\n");
   printf ("#include \"toplev.h\"\n");
+  printf ("#include \"flags.h\"\n");
   printf ("\n");
   printf ("#define operands recog_data.operand\n\n");
 
diff -rup ../orig/egcs-CVS20010413/gcc/output.h egcs-CVS20010413/gcc/output.h
--- ../orig/egcs-CVS20010413/gcc/output.h	Wed Apr 11 11:52:13 2001
+++ egcs-CVS20010413/gcc/output.h	Fri Apr 13 15:24:33 2001
@@ -375,11 +375,6 @@ extern int which_alternative;
 extern rtx final_sequence;
 #endif
 
-/* Nonzero means generate position-independent code.
-   This is not fully implemented yet.  */
-
-extern int flag_pic;
-
 /* The line number of the beginning of the current function.
    sdbout.c needs this so that it can output relative linenumbers.  */
 
diff -rup ../orig/egcs-CVS20010413/gcc/reg-stack.c egcs-CVS20010413/gcc/reg-stack.c
--- ../orig/egcs-CVS20010413/gcc/reg-stack.c	Wed Apr 11 11:27:46 2001
+++ egcs-CVS20010413/gcc/reg-stack.c	Fri Apr 13 16:21:36 2001
@@ -166,6 +166,7 @@
 #include "output.h"
 #include "basic-block.h"
 #include "varray.h"
+#include "reload.h"
 
 #ifdef STACK_REGS
 
diff -rup ../orig/egcs-CVS20010413/gcc/tree.h egcs-CVS20010413/gcc/tree.h
--- ../orig/egcs-CVS20010413/gcc/tree.h	Thu Apr 12 07:47:16 2001
+++ egcs-CVS20010413/gcc/tree.h	Fri Apr 13 15:24:33 2001
@@ -2455,10 +2455,6 @@ extern const char *input_filename;
 /* Current line number in input file.  */
 extern int lineno;
 
-/* Nonzero for -pedantic switch: warn about anything
-   that standard C forbids.  */
-extern int pedantic;
-
 /* Nonzero means lvalues are limited to those valid in pedantic ANSI C.
    Zero means allow extended lvalues.  */
 



More information about the Gcc-patches mailing list