Fix warning for implicit declaration of dw2_output_indirect_constants in toplev.c

Andreas Jaeger aj@suse.de
Wed May 16 01:15:00 GMT 2001


Bootstrapping GCC (both branches) I now get :

/cvs/gcc/gcc/toplev.c:2407: warning: implicit declaration of function `dw2_output_indirect_constants'

Ok to commit on both branches if bootstrapping passes?

I'm currently bootstrapping and toplev compiles now without this error,
Andreas

2001-05-16  Andreas Jaeger  <aj@suse.de>

	* Makefile.in (toplev.o): Add dependency on dwarf2asm.h.

	* toplev.c: Include dwarf2asm.h for prototype of
	dw2_output_indirect_constants.

============================================================
Index: gcc/toplev.c
--- gcc/toplev.c	2001/05/12 06:03:20	1.457
+++ gcc/toplev.c	2001/05/16 07:58:02
@@ -64,6 +64,7 @@
 #include "ssa.h"
 #include "params.h"
 #include "reload.h"
+#include "dwarf2asm.h"
 
 #ifdef DWARF_DEBUGGING_INFO
 #include "dwarfout.h"
============================================================
Index: gcc/Makefile.in
--- gcc/Makefile.in	2001/05/14 02:46:22	1.662
+++ gcc/Makefile.in	2001/05/16 07:58:06
@@ -1379,7 +1379,7 @@
    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) reload.h
+   ssa.h params.h $(TM_P_H) reload.h dwarf2asm.h
 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(MAYBE_USE_COLLECT2) \
 	  -DTARGET_NAME=\"$(target_alias)\" \
 	  -c $(srcdir)/toplev.c

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



More information about the Gcc-patches mailing list