diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-10-08 22:49:23 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-10-08 22:49:23 +0200 |
commit | 7787b4aa9ba5ebdeaa63e4cb8fcb7f9d6c2ef5b0 (patch) | |
tree | e98048c00660a54cc27d97628b33e433434607d0 /gcc/cfgexpand.c | |
parent | 0c9e84247ea09de90e753ae059b0b64c17b2964e (diff) | |
download | gcc-7787b4aa9ba5ebdeaa63e4cb8fcb7f9d6c2ef5b0.zip gcc-7787b4aa9ba5ebdeaa63e4cb8fcb7f9d6c2ef5b0.tar.gz gcc-7787b4aa9ba5ebdeaa63e4cb8fcb7f9d6c2ef5b0.tar.bz2 |
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
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |