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 about unused variables



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]