This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove warning in local-alloc.c and profile.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Remove warning in local-alloc.c and profile.c
- From: Andreas Jaeger <aj at suse dot de>
- Date: Mon, 06 Aug 2001 13:07:02 +0200
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