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]

Re: Warning regressions: gcse.c & cse.c


On Sep  4, 2000, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:

> I believe these are yours, would you please fix?
>> gcse.c:1339: warning: function declaration isn't a prototype
>> cse.c:2141: warning: function declaration isn't a prototype

Sure, thanks for the heads up.  Here's the patch.  I'm checking it in
under the ``obviously correct'' rule.

Index: gcc/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* gcse.c (hash_string_1): Add prototype.
	* cse.c (canon_hash_string): Likewise.

Index: gcc/cse.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cse.c,v
retrieving revision 1.154
diff -u -p -r1.154 cse.c
--- gcc/cse.c	2000/09/02 02:54:55	1.154
+++ gcc/cse.c	2000/09/05 05:58:48
@@ gcc/cse.c	PARAMS ((v
 static void invalidate_for_call	PARAMS ((void));
 static rtx use_related_value	PARAMS ((rtx, struct table_elt *));
 static unsigned canon_hash	PARAMS ((rtx, enum machine_mode));
+static unsigned canon_hash_string PARAMS ((const char *));
 static unsigned safe_hash	PARAMS ((rtx, enum machine_mode));
 static int exp_equiv_p		PARAMS ((rtx, rtx, int, int));
 static rtx canon_reg		PARAMS ((rtx, rtx));
Index: gcc/gcse.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/gcse.c,v
retrieving revision 1.103
diff -u -p -r1.103 gcse.c
--- gcc/gcse.c	2000/09/02 02:54:55	1.103
+++ gcc/gcse.c	2000/09/05 05:58:49
@@ -549,6 +549,7 @@ static void insert_expr_in_table PARAMS 
 static void insert_set_in_table PARAMS ((rtx, rtx));
 static unsigned int hash_expr	PARAMS ((rtx, enum machine_mode, int *, int));
 static unsigned int hash_expr_1 PARAMS ((rtx, enum machine_mode, int *));
+static unsigned int hash_string_1 PARAMS ((const char *));
 static unsigned int hash_set	PARAMS ((int, int));
 static int expr_equiv_p	        PARAMS ((rtx, rtx));
 static void record_last_reg_set_info PARAMS ((rtx, int));

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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