diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-08 20:49:23 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-08 20:49:23 +0000 |
commit | c4ad32971e67259c21545601fd02ebb56d9e1f18 (patch) | |
tree | e98048c00660a54cc27d97628b33e433434607d0 /gcc/cfgexpand.c | |
parent | a11e61475d8eff020aad687c7baeca5a284d7623 (diff) | |
download | gcc-c4ad32971e67259c21545601fd02ebb56d9e1f18.tar.gz |
* cfgexpand.c (expand_gimple_cond): Convert also goto_block and
goto_locus of true_edge into RTL locator.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140986 138bc75d-0d04-0410-961f-82ee72b054a4
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 e94fe356e1c..6eaec30c98f 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; } |