From 8a6b9b7fb8ed4b6207f122df30379a1407a8e53c Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Sun, 20 Jul 2003 00:03:37 +0200 Subject: [PATCH] * sched-rgn.c (find_rgns): Initialize current_edge correctly. From-SVN: r69595 --- gcc/ChangeLog | 4 ++++ gcc/sched-rgn.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2