diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-07-02 11:10:59 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2019-07-02 11:10:59 +0000 |
commit | fe51b129500370ad5818e6dc7a2439f53796f59e (patch) | |
tree | 50946d63c6842c296c169238465027d541993f6a /gcc | |
parent | 82cea5e8bf532fda4f25f9a972154900978e3412 (diff) | |
download | gcc-fe51b129500370ad5818e6dc7a2439f53796f59e.zip gcc-fe51b129500370ad5818e6dc7a2439f53796f59e.tar.gz gcc-fe51b129500370ad5818e6dc7a2439f53796f59e.tar.bz2 |
* cfgrtl.c (commit_edge_insertions): Rebuild jump labels chain.
From-SVN: r272930
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cfgrtl.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c206ab6..b8f7bab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -4,7 +4,7 @@ to be inserted on single successor edge of the entry block. Then call commit_edge_insertions instead of inserting the instructions manually. * cfgrtl.c (commit_edge_insertions): Do not verify flow info during - RTL expansion. + RTL expansion and rebuild jump labels chain. 2019-07-02 Richard Biener <rguenther@suse.de> diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index fb0350d..4853ce4 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -2116,7 +2116,11 @@ commit_edge_insertions (void) FOR_EACH_EDGE (e, ei, bb->succs) if (e->insns.r) - commit_one_edge_insertion (e); + { + if (currently_expanding_to_rtl) + rebuild_jump_labels_chain (e->insns.r); + commit_one_edge_insertion (e); + } } } |