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]

Fix warnings in varray.c



I've just got the following warnings while bootstrapping:

/cvs/gcc/gcc/varray.c: In function `varray_check_failed':
/cvs/gcc/gcc/varray.c:87: warning: implicit declaration of function `internal_error'
/cvs/gcc/gcc/varray.c:89: warning: implicit declaration of function `trim_filename'
/cvs/gcc/gcc/varray.c:90: warning: `noreturn' function does return

Here's a patch to fix those.  Ok to commit if bootstrapping passes on
i686-linux-gnu?

Andreas

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

	* varray.c: Include errors.h for internal_error and trim_filename
	declarations.

	* Makefile.in (varray.o): Add errors.h.

============================================================
Index: gcc/varray.c
--- gcc/varray.c	2001/07/06 18:12:11	1.10
+++ gcc/varray.c	2001/07/09 07:33:03
@@ -1,5 +1,5 @@
 /* Virtual array support.
-   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
    Contributed by Cygnus Solutions.
 
    This file is part of GNU CC.
@@ -20,6 +20,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include "config.h"
+#include "errors.h"
 #include "system.h"
 #include "rtl.h"
 #include "tree.h"
============================================================
Index: gcc/Makefile.in
--- gcc/Makefile.in	2001/07/08 20:05:06	1.691
+++ gcc/Makefile.in	2001/07/09 07:33:03
@@ -1481,7 +1481,8 @@
 global.o : global.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h reload.h function.h \
    $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h output.h toplev.h \
    $(TM_P_H)
-varray.o : varray.c $(CONFIG_H) $(SYSTEM_H) varray.h $(RTL_H) $(TREE_H) bitmap.h
+varray.o : varray.c $(CONFIG_H) $(SYSTEM_H) varray.h $(RTL_H) $(TREE_H) bitmap.h \
+   errors.h
 reload.o : reload.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h output.h $(EXPR_H) \
    reload.h $(RECOG_H) hard-reg-set.h insn-config.h $(REGS_H) \
    function.h real.h toplev.h $(TM_P_H)

-- 
 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]