From: Alexandre Oliva Date: Tue, 9 Oct 2007 04:46:49 +0000 (+0000) Subject: re PR tree-optimization/33572 (wrong code with -O) X-Git-Tag: releases/gcc-4.3.0~2149 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e4cc5399f5eac720b03a5e19bbef6d0efae8e5d;p=thirdparty%2Fgcc.git re PR tree-optimization/33572 (wrong code with -O) PR tree-optimization/33572 * tree-inline.c (update_ssa_across_abnormal_edges): Tolerate the absence of a corresponding edge from the exit block. From-SVN: r129151 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f3f200b47f28..d275fbb437df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-10-09 Alexandre Oliva + + PR tree-optimization/33572 + * tree-inline.c (update_ssa_across_abnormal_edges): Tolerate + the absence of a corresponding edge from the exit block. + 2007-10-09 Alexandre Oliva PR middle-end/22156 diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 88c615861b47..f575b27b82f8 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1055,7 +1055,8 @@ update_ssa_across_abnormal_edges (basic_block bb, basic_block ret_bb, } re = find_edge (ret_bb, e->dest); - gcc_assert (re); + if (!re) + continue; gcc_assert ((re->flags & (EDGE_EH | EDGE_ABNORMAL)) == (e->flags & (EDGE_EH | EDGE_ABNORMAL)));