This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix some warnings
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 08 Jun 2002 15:28:48 +0200
- Subject: Fix some warnings
The appended patch fixes two warnings about unused variables.
Bootstrapped/Regtested on i686-linux-gnu.
Ok to commit?
Andreas
2002-06-08 Andreas Jaeger <aj@suse.de>
* lcm.c (optimize_mode_switching): Add unused attribute for
variable.
* sched-deps.c (sched_analyze): Remove unused variable.
============================================================
Index: gcc/sched-deps.c
--- gcc/sched-deps.c 7 Jun 2002 18:00:44 -0000 1.44
+++ gcc/sched-deps.c 8 Jun 2002 10:10:09 -0000
@@ -1236,7 +1236,7 @@ sched_analyze (deps, head, tail)
for (insn = head;; insn = NEXT_INSN (insn))
{
- rtx link, end_seq, r0, set, note;
+ rtx link, end_seq, r0, set;
if (GET_CODE (insn) == INSN || GET_CODE (insn) == JUMP_INSN)
{
============================================================
Index: gcc/lcm.c
--- gcc/lcm.c 30 May 2002 20:55:08 -0000 1.48
+++ gcc/lcm.c 8 Jun 2002 10:10:10 -0000
@@ -1,5 +1,5 @@
/* Generic partial redundancy elimination with lazy code motion support.
- Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GCC.
@@ -1024,7 +1024,7 @@ optimize_mode_switching (file)
int n_entities;
int max_num_modes = 0;
bool emited = false;
- basic_block post_entry, pre_exit ATTRIBUTE_UNUSED;
+ basic_block post_entry ATTRIBUTE_UNUSED, pre_exit ATTRIBUTE_UNUSED;
clear_bb_flags ();
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj