This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix warnings about unused variables
- To: gcc-patches at gcc dot gnu dot org
- Subject: Fix warnings about unused variables
- From: Andreas Jaeger <aj at suse dot de>
- Date: Mon, 16 Jul 2001 14:32:27 +0200
The appended patch avoids two warnings about unused variables.
Bootstrapped and testsuite run on i686-linux.
Ok to commit?
Andreas
2001-07-16 Andreas Jaeger <aj@suse.de>
* lcm.c (optimize_mode_switching): Avoid warning for unused
variable if !NORMAL_MODE
* flow.c (try_crossjump_to_edge): Remove unused variable.
============================================================
Index: gcc/lcm.c
--- gcc/lcm.c 2001/07/11 16:11:47 1.24
+++ gcc/lcm.c 2001/07/16 09:47:49
@@ -1013,7 +1013,9 @@ optimize_mode_switching (file)
{
rtx insn;
int bb, e;
+#ifdef NORMAL_MODE
edge eg;
+#endif
int need_commit = 0;
sbitmap *kill;
struct edge_list *edge_list;
============================================================
Index: gcc/flow.c
--- gcc/flow.c 2001/07/15 15:47:05 1.426
+++ gcc/flow.c 2001/07/16 09:47:50
@@ -3439,7 +3439,6 @@ try_crossjump_to_edge (mode, e1, e2)
rtx newpos1, newpos2;
rtx first, last;
edge s;
- rtx note;
rtx label;
rtx barrier;
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj