diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb2b57d1745..737ab285be3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-07-19 Zdenek Dvorak + + * sched-rgn.c (find_rgns): Initialize current_edge correctly. + 2003-07-19 Phil Edwards * doc/makefile.texi (restrap, profiledbootstrap): Document targets. diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c index cb5e52d48a6..f3444ec8991 100644 --- a/gcc/sched-rgn.c +++ b/gcc/sched-rgn.c @@ -618,7 +618,8 @@ find_rgns (struct edge_list *edge_list, dominance_info dom) int *max_hdr, *dfs_nr, *stack, *degree; char no_loops = 1; int node, child, loop_head, i, head, tail; - int count = 0, sp, idx = 0, current_edge = out_edges[0]; + int count = 0, sp, idx = 0; + int current_edge = out_edges[ENTRY_BLOCK_PTR->succ->dest->index]; int num_bbs, num_insns, unreachable; int too_large_failure; basic_block bb;