From 77fcaf4b701894705944491ea1aa46b68ac271a3 Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Wed, 27 Jul 2005 15:23:33 +0200 Subject: [PATCH] re PR tree-optimization/20773 (ICE: SEGV building jar file) PR tree-optimization/20773 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch edge. From-SVN: r102425 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-loop-ch.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a300071a914..10f3d12bfdf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-07-27 Zdenek Dvorak + + PR tree-optimization/20773 + * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch + edge. + 2005-07-27 Richard Guenther * tree-ssa-structalias.c (push_fields_onto_fieldstack): diff --git a/gcc/tree-ssa-loop-ch.c b/gcc/tree-ssa-loop-ch.c index 01845788a6d..2b3094622d7 100644 --- a/gcc/tree-ssa-loop-ch.c +++ b/gcc/tree-ssa-loop-ch.c @@ -197,7 +197,7 @@ copy_loop_headers (void) /* Ensure that the header will have just the latch as a predecessor inside the loop. */ if (!single_pred_p (exit->dest)) - exit = single_succ_edge (loop_split_edge_with (exit, NULL)); + exit = single_pred_edge (loop_split_edge_with (exit, NULL)); entry = loop_preheader_edge (loop); -- 2.30.2