* cfgrtl.c (commit_edge_insertions): Rebuild jump labels chain.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 2 Jul 2019 11:10:59 +0000 (11:10 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 2 Jul 2019 11:10:59 +0000 (11:10 +0000)
From-SVN: r272930

gcc/ChangeLog
gcc/cfgrtl.c

index c206ab6..b8f7bab 100644 (file)
@@ -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>
 
index fb0350d..4853ce4 100644 (file)
@@ -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);
+         }
     }
 }
 \f