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]

strict prototype warning patch


	This patch zaps ~180 -Wstrict-prototype warnings.  I
bootstrapped this successfully on Irix6.  Okay to install?

		Thanks,
		--Kaveh

Sat Mar 27 17:30:13 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* recog.h (insn_outfun, insn_operand_predicate): Add prototype
	arguments.

	* rtl.h (note_stores): Likewise.

	* rtlanal.c (note_stores): Likewise.


diff -rup orig/egcs-CVS19990327/gcc/recog.h egcs-CVS19990327/gcc/recog.h
--- orig/egcs-CVS19990327/gcc/recog.h	Sat Jan 23 14:45:41 1999
+++ egcs-CVS19990327/gcc/recog.h	Sat Mar 27 17:10:12 1999
@@ -178,7 +178,7 @@ extern struct operand_alternative recog_
 
 extern const char *const insn_template[];
 
-extern const char *(*const insn_outfun[]) ();
+extern const char *(*const insn_outfun[]) PROTO ((rtx *, rtx));
 
 extern const int insn_n_operands[];
 
@@ -203,6 +203,6 @@ extern const enum machine_mode insn_oper
 
 extern const char insn_operand_strict_low[][MAX_RECOG_OPERANDS];
 
-extern int (*const insn_operand_predicate[][MAX_RECOG_OPERANDS]) ();
+extern int (*const insn_operand_predicate[][MAX_RECOG_OPERANDS]) PROTO ((rtx, enum machine_mode));
 
 extern const char * insn_name[];
diff -rup orig/egcs-CVS19990327/gcc/rtl.h egcs-CVS19990327/gcc/rtl.h
--- orig/egcs-CVS19990327/gcc/rtl.h	Thu Mar 25 16:32:57 1999
+++ egcs-CVS19990327/gcc/rtl.h	Sat Mar 27 16:57:29 1999
@@ -1022,7 +1022,7 @@ extern int multiple_sets		PROTO((rtx));
 extern rtx find_last_value		PROTO((rtx, rtx *, rtx, int));
 extern int refers_to_regno_p		PROTO((int, int, rtx, rtx *));
 extern int reg_overlap_mentioned_p	PROTO((rtx, rtx));
-extern void note_stores			PROTO((rtx, void (*)()));
+extern void note_stores			PROTO((rtx, void (*)(rtx, rtx)));
 extern rtx reg_set_last			PROTO((rtx, rtx));
 extern int rtx_equal_p			PROTO((rtx, rtx));
 extern int dead_or_set_p		PROTO((rtx, rtx));
diff -rup orig/egcs-CVS19990327/gcc/rtlanal.c egcs-CVS19990327/gcc/rtlanal.c
--- orig/egcs-CVS19990327/gcc/rtlanal.c	Mon Mar 15 08:19:44 1999
+++ egcs-CVS19990327/gcc/rtlanal.c	Sat Mar 27 16:57:40 1999
@@ -1180,7 +1180,7 @@ rtx_equal_p (x, y)
 void
 note_stores (x, fun)
      register rtx x;
-     void (*fun) ();
+     void (*fun) PROTO ((rtx, rtx));
 {
   if ((GET_CODE (x) == SET || GET_CODE (x) == CLOBBER))
     {


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