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: Fix warning in insn-recog.c


"Zack Weinberg" <zackw@stanford.edu> writes:

> On Sun, Jul 01, 2001 at 08:01:32PM +0200, Andreas Jaeger wrote:
>> 
>> Compiling for i686-linux I get:
>> 
>> insn-recog.c: In function `split_2':
>> insn-recog.c:47859: warning: implicit declaration of function `operands_match_p'
>> 
>> I propose to include reload.h.
> 
> You also need to adjust the dependencies of insn-recog.o in the
> Makefile.

Thanks for reminding me.

Here's a complete patch.  Ok to commit?

Andreas

2001-07-02  Andreas Jaeger  <aj@suse.de>

	* Makefile.in (insn-recog.o): Add dependency on reload.h.

	* genrecog.c (write_header): Include reload.h for prototypes in
	insn-recog.c.

============================================================
Index: gcc/genrecog.c
--- gcc/genrecog.c	2001/05/22 06:46:20	1.99
+++ gcc/genrecog.c	2001/07/01 12:52:44
@@ -1,6 +1,6 @@
 /* Generate code from machine description to recognize rtl as insns.
    Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1997, 1998,
-   1999, 2000 Free Software Foundation, Inc.
+   1999, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GNU CC.
 
@@ -2378,6 +2378,7 @@
 #include \"hard-reg-set.h\"\n\
 #include \"resource.h\"\n\
 #include \"toplev.h\"\n\
+#include \"reload.h\"\n\
 \n");
 
   puts ("\n\
============================================================
Index: gcc/Makefile.in
--- gcc/Makefile.in	2001/06/30 17:23:52	1.685
+++ gcc/Makefile.in	2001/07/02 06:39:51
@@ -1619,7 +1619,7 @@
 
 insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h $(RECOG_H) \
   real.h output.h flags.h $(SYSTEM_H) function.h hard-reg-set.h resource.h \
-  $(TM_P_H) toplev.h
+  $(TM_P_H) toplev.h reload.h
 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c
 
 insn-recog.c: s-recog ; @true

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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