This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Warning regressions: gcse.c & cse.c
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Warning regressions: gcse.c & cse.c
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 05 Sep 2000 03:02:32 -0300
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200009041239.IAA20419@caip.rutgers.edu>
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