[lno][PATCH] bootstrap failure with --disable-checking

Richard Guenther rguenth@tat.physik.uni-tuebingen.de
Mon Mar 29 13:57:00 GMT 2004


Hi!

The branch fails to bootstrap because of unused variables.  Patch below
fixes it.

Thanks,

Richard.

Index: gcc/tree-ssa-loop-ivcanon.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-loop-ivcanon.c,v
retrieving revision 1.1.2.6
diff -u -u -r1.1.2.6 tree-ssa-loop-ivcanon.c
--- gcc/tree-ssa-loop-ivcanon.c	21 Mar 2004 13:34:20 -0000	1.1.2.6
+++ gcc/tree-ssa-loop-ivcanon.c	29 Mar 2004 13:53:47 -0000
@@ -420,8 +420,10 @@

   if (TREE_CODE (niter) == INTEGER_CST)
     {
+#ifdef ENABLE_CHECKING
       tree nit;
       edge ex;
+#endif

       exit = loop_exit_edge (loop, 0);
       if (!just_once_each_iteration_p (loop, exit->src))
Index: gcc/df.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/df.c,v
retrieving revision 1.32.2.12.4.5
diff -u -u -r1.32.2.12.4.5 df.c
--- gcc/df.c	21 Mar 2004 03:19:55 -0000	1.32.2.12.4.5
+++ gcc/df.c	29 Mar 2004 13:53:48 -0000
@@ -1325,7 +1325,9 @@
 df_reg_def_chain_create (struct df *df, bitmap blocks, bool redo)
 {
   basic_block bb;
+#ifdef ENABLE_CHECKING
   unsigned regno;
+#endif
   unsigned old_def_id_save = df->def_id_save;

   if (redo)
@@ -1405,7 +1407,9 @@
 df_reg_use_chain_create (struct df *df, bitmap blocks, bool redo)
 {
   basic_block bb;
+#ifdef ENABLE_CHECKING
   unsigned regno;
+#endif
   unsigned old_use_id_save = df->use_id_save;

   if (redo)



More information about the Gcc-patches mailing list