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]

Remove warning in local-alloc.c and profile.c



The appended patch fixes these warnings:

/cvs/gcc/gcc/local-alloc.c:1108: warning: implicit declaration of function `can_throw_internal'
/cvs/gcc/gcc/profile.c:544: warning: unused variable `insn'

Regtested/bootstrapped on i686-linux,

Ok to commit?
Andreas

2001-08-06  Andreas Jaeger  <aj@suse.de>

	* profile.c (branch_prob): Remove unused variable insn.

	* Makefile.in (local-alloc.o): Add dependency on except.h.

	* local-alloc.c: Include except.h for can_throw_internal prototype.

============================================================
Index: gcc/local-alloc.c
--- gcc/local-alloc.c	2001/08/06 06:41:46	1.83
+++ gcc/local-alloc.c	2001/08/06 07:57:06
@@ -1,6 +1,6 @@
 /* Allocate registers within a basic block, for GNU compiler.
    Copyright (C) 1987, 1988, 1991, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000 Free Software Foundation, Inc.
+   1999, 2000, 2001 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -73,6 +73,7 @@ Boston, MA 02111-1307, USA.  */
 #include "recog.h"
 #include "output.h"
 #include "toplev.h"
+#include "except.h"
 
 /* Next quantity number available for allocation.  */
 
============================================================
Index: gcc/Makefile.in
--- gcc/Makefile.in	2001/08/06 06:39:20	1.714
+++ gcc/Makefile.in	2001/08/06 07:57:09
@@ -1496,7 +1496,7 @@ regclass.o : regclass.c $(CONFIG_H) $(SY
    toplev.h function.h output.h $(GGC_H) $(TM_P_H) $(EXPR_H)
 local-alloc.o : local-alloc.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h \
    $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h $(RECOG_H) \
-   output.h function.h $(INSN_ATTR_H) toplev.h $(TM_P_H)
+   output.h function.h $(INSN_ATTR_H) toplev.h except.h $(TM_P_H)
 bitmap.o : bitmap.c $(GCONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h $(BASIC_BLOCK_H) \
    $(REGS_H)
 	$(CC) -c $(ALL_CFLAGS) -DGENERATOR_FILE $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
============================================================
Index: gcc/profile.c
--- gcc/profile.c	2001/08/04 12:08:43	1.60
+++ gcc/profile.c	2001/08/06 08:16:32
@@ -541,7 +541,6 @@ branch_prob ()
 
   for (i = 0; i < n_basic_blocks ; i++)
     {
-      rtx insn;
       int need_exit_edge = 0, need_entry_edge = 0;
       int have_exit_edge = 0, have_entry_edge = 0;
       basic_block bb = BASIC_BLOCK (i);

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