From: Eric Botcazou Date: Tue, 2 Jul 2019 11:10:59 +0000 (+0000) Subject: * cfgrtl.c (commit_edge_insertions): Rebuild jump labels chain. X-Git-Tag: misc/cutover-git~4411 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe51b129500370ad5818e6dc7a2439f53796f59e;p=thirdparty%2Fgcc.git * cfgrtl.c (commit_edge_insertions): Rebuild jump labels chain. From-SVN: r272930 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c206ab6e839c..b8f7bab20045 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 diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index fb0350daa97a..4853ce4713de 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); + } } }