aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cfgloop.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 54e828f..a8900ce 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
+
+ * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
+
2002-05-28 Richard Henderson <rth@redhat.com>
* config/i386/i386.c (ix86_compute_frame_layout): Do not add
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index a2b10dc..aed2641 100644
--- a/gcc/cfgloop.c
+++ b/gcc/cfgloop.c
@@ -62,7 +62,7 @@ flow_loops_cfg_dump (loops, file)
fprintf (file, ";; %d succs { ", bb->index);
for (succ = bb->succ; succ; succ = succ->succ_next)
fprintf (file, "%d ", succ->dest->index);
- flow_nodes_print ("} dom", loops->cfg.dom[i], file);
+ flow_nodes_print ("} dom", loops->cfg.dom[bb->index], file);
}
/* Dump the DFS node order. */