From 7787b4aa9ba5ebdeaa63e4cb8fcb7f9d6c2ef5b0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 8 Oct 2008 22:49:23 +0200 Subject: cfgexpand.c (expand_gimple_cond): Convert also goto_block and goto_locus of true_edge into RTL locator. * cfgexpand.c (expand_gimple_cond): Convert also goto_block and goto_locus of true_edge into RTL locator. From-SVN: r140986 --- gcc/ChangeLog | 5 +++++ gcc/cfgexpand.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3894a24..4f1cc5c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-10-08 Jakub Jelinek + + * cfgexpand.c (expand_gimple_cond): Convert also goto_block and + goto_locus of true_edge into RTL locator. + 2008-10-08 Uros Bizjak * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG. diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index e94fe35..6eaec30 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -1725,6 +1725,14 @@ expand_gimple_cond (basic_block bb, gimple stmt) maybe_dump_rtl_for_gimple_stmt (stmt, last2); + if (true_edge->goto_locus) + { + set_curr_insn_source_location (true_edge->goto_locus); + set_curr_insn_block (true_edge->goto_block); + true_edge->goto_locus = curr_insn_locator (); + } + true_edge->goto_block = NULL; + ggc_free (pred); return new_bb; } -- cgit v1.1