summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/cfgexpand.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d19e3b3d454..30d0fa4b142 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -3,6 +3,9 @@
* tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
with LABEL_EXPR.
+ * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
+ EDGE_I.
+
2005-03-03 Roger Sayle <roger@eyesopen.com>
Andrew Pinski <pinskia@physics.uc.edu>
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index d429c69661e..ce2666113d4 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -1237,7 +1237,7 @@ construct_exit_block (void)
ix = 0;
while (ix < EDGE_COUNT (EXIT_BLOCK_PTR->preds))
{
- e = EDGE_I (EXIT_BLOCK_PTR->preds, ix);
+ e = EDGE_PRED (EXIT_BLOCK_PTR, ix);
if (!(e->flags & EDGE_ABNORMAL))
redirect_edge_succ (e, exit_block);
else