From fe51b129500370ad5818e6dc7a2439f53796f59e Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 2 Jul 2019 11:10:59 +0000 Subject: [PATCH] * cfgrtl.c (commit_edge_insertions): Rebuild jump labels chain. From-SVN: r272930 --- gcc/ChangeLog | 2 +- gcc/cfgrtl.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c206ab6e839..b8f7bab2004 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 fb0350daa97..4853ce4713d 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); + } } } -- 2.30.2