This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch installed for yet more redundant declaration warnings


Another 200 gone, ~3200 remain.  Bootstrapped on solaris2.7 and
installed as obvious.


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

	* Makefile.in (toplev.o, jump.o, regmove.o): Depend on reload.h

	* jump.c, regmove.c, toplev.c: Include reload.h.

	* reload.h (reload_cse_regs): Declare.

	* rtl.h (find_equiv_reg, operands_match_p, safe_from_earlyclobber,
	reload_cse_regs, init_reload, mark_home_live, reload,
	init_caller_save): Delete redundant prototypes.

diff -rup orig/egcs-CVS20010412/gcc/Makefile.in egcs-CVS20010412/gcc/Makefile.in
--- orig/egcs-CVS20010412/gcc/Makefile.in	Wed Apr 11 16:21:56 2001
+++ egcs-CVS20010412/gcc/Makefile.in	Fri Apr 13 10:35:28 2001
@@ -1376,7 +1376,7 @@ toplev.o : toplev.c $(CONFIG_H) $(SYSTEM
    insn-config.h intl.h $(RECOG_H) Makefile toplev.h dwarfout.h \
    dwarf2out.h sdbout.h dbxout.h $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) \
    graph.h $(LOOP_H) except.h $(REGS_H) $(TIMEVAR_H) $(lang_options_files) \
-   ssa.h params.h $(TM_P_H)
+   ssa.h params.h $(TM_P_H) reload.h
 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(MAYBE_USE_COLLECT2) \
 	  -DTARGET_NAME=\"$(target_alias)\" \
 	  -c $(srcdir)/toplev.c
@@ -1452,7 +1452,7 @@ integrate.o : integrate.c $(CONFIG_H) $(
    params.h $(TM_P_H)
 jump.o : jump.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h hard-reg-set.h $(REGS_H) \
    insn-config.h $(RECOG_H) $(EXPR_H) real.h except.h function.h \
-   toplev.h $(INSN_ATTR_H) $(TM_P_H)
+   toplev.h $(INSN_ATTR_H) $(TM_P_H) reload.h
 
 simplify-rtx.o : simplify-rtx.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(REGS_H) \
    hard-reg-set.h flags.h real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h \
@@ -1530,7 +1530,7 @@ alias.o : alias.c $(CONFIG_H) $(SYSTEM_H
    $(GGC_H) function.h cselib.h $(TREE_H) $(TM_P_H)
 regmove.o : regmove.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) insn-config.h \
    $(RECOG_H) output.h $(REGS_H) hard-reg-set.h flags.h function.h \
-   $(EXPR_H) $(BASIC_BLOCK_H) toplev.h $(TM_P_H)
+   $(EXPR_H) $(BASIC_BLOCK_H) toplev.h $(TM_P_H) reload.h
 haifa-sched.o : haifa-sched.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) sched-int.h \
    $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h flags.h insn-config.h function.h \
    $(INSN_ATTR_H) toplev.h $(RECOG_H) except.h $(TM_P_H)
diff -rup orig/egcs-CVS20010412/gcc/jump.c egcs-CVS20010412/gcc/jump.c
--- orig/egcs-CVS20010412/gcc/jump.c	Thu Apr  5 22:51:22 2001
+++ egcs-CVS20010412/gcc/jump.c	Fri Apr 13 10:31:29 2001
@@ -66,6 +66,7 @@ Boston, MA 02111-1307, USA.  */
 #include "real.h"
 #include "except.h"
 #include "toplev.h"
+#include "reload.h"
 
 /* ??? Eventually must record somehow the labels used by jumps
    from nested functions.  */
diff -rup orig/egcs-CVS20010412/gcc/regmove.c egcs-CVS20010412/gcc/regmove.c
--- orig/egcs-CVS20010412/gcc/regmove.c	Thu Apr  5 22:51:24 2001
+++ egcs-CVS20010412/gcc/regmove.c	Fri Apr 13 10:32:47 2001
@@ -39,6 +39,7 @@ Boston, MA 02111-1307, USA.  */
 #include "expr.h"
 #include "basic-block.h"
 #include "toplev.h"
+#include "reload.h"
 
 static int perhaps_ends_bb_p	PARAMS ((rtx));
 static int optimize_reg_copy_1	PARAMS ((rtx, rtx, rtx));
diff -rup orig/egcs-CVS20010412/gcc/reload.h egcs-CVS20010412/gcc/reload.h
--- orig/egcs-CVS20010412/gcc/reload.h	Sat Jan  6 21:26:50 2001
+++ egcs-CVS20010412/gcc/reload.h	Thu Apr 12 23:46:30 2001
@@ -343,6 +343,7 @@ int earlyclobber_operand_p PARAMS ((rtx)
 
 /* Functions in reload1.c:  */
 
+extern void reload_cse_regs		PARAMS ((rtx));
 extern int reloads_conflict		PARAMS ((int, int));
 
 /* Initialize the reload pass once per compilation.  */
diff -rup orig/egcs-CVS20010412/gcc/rtl.h egcs-CVS20010412/gcc/rtl.h
--- orig/egcs-CVS20010412/gcc/rtl.h	Thu Apr 12 18:24:04 2001
+++ egcs-CVS20010412/gcc/rtl.h	Thu Apr 12 23:46:30 2001
@@ -1282,9 +1282,6 @@ extern enum rtx_code unsigned_condition	
 extern enum rtx_code signed_condition	PARAMS ((enum rtx_code));
 extern void mark_jump_label		PARAMS ((rtx, rtx, int, int));
 
-/* In reload.c */
-extern rtx find_equiv_reg		PARAMS ((rtx, rtx, enum reg_class, int, short *, int, enum machine_mode));
-
 /* In jump.c */
 extern rtx squeeze_notes		PARAMS ((rtx, rtx));
 extern rtx delete_insn			PARAMS ((rtx));
@@ -1814,10 +1811,6 @@ extern void update_temp_slot_address			P
 extern void purge_addressof				PARAMS ((rtx));
 extern void purge_hard_subreg_sets			PARAMS ((rtx));
 
-/* In reload.c */
-extern int operands_match_p		PARAMS ((rtx, rtx));
-extern int safe_from_earlyclobber	PARAMS ((rtx, rtx));
-
 /* In stmt.c */
 extern void set_file_and_line_for_stmt	PARAMS ((const char *, int));
 extern void expand_null_return		PARAMS ((void));
@@ -1892,15 +1885,6 @@ extern void dump_local_alloc		PARAMS ((F
 #endif
 extern int local_alloc			PARAMS ((void));
 extern int function_invariant_p		PARAMS ((rtx));
-
-/* In reload1.c */
-extern void reload_cse_regs		PARAMS ((rtx));
-extern void init_reload			PARAMS ((void));
-extern void mark_home_live		PARAMS ((int));
-extern int reload			PARAMS ((rtx, int));
-
-/* In caller-save.c */
-extern void init_caller_save		PARAMS ((void));
 
 /* In profile.c */
 extern void init_branch_prob		PARAMS ((const char *));
diff -rup orig/egcs-CVS20010412/gcc/toplev.c egcs-CVS20010412/gcc/toplev.c
--- orig/egcs-CVS20010412/gcc/toplev.c	Mon Apr  9 16:49:14 2001
+++ egcs-CVS20010412/gcc/toplev.c	Fri Apr 13 10:35:03 2001
@@ -63,6 +63,7 @@ Boston, MA 02111-1307, USA.  */
 #include "diagnostic.h"
 #include "ssa.h"
 #include "params.h"
+#include "reload.h"
 
 #ifdef DWARF_DEBUGGING_INFO
 #include "dwarfout.h"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]