aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2019-07-02 11:10:59 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2019-07-02 11:10:59 +0000
commitfe51b129500370ad5818e6dc7a2439f53796f59e (patch)
tree50946d63c6842c296c169238465027d541993f6a /gcc
parent82cea5e8bf532fda4f25f9a972154900978e3412 (diff)
downloadgcc-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/ChangeLog2
-rw-r--r--gcc/cfgrtl.c6
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);
+ }
}
}