* 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 c206ab6e839c163a4dfcc0aea46c9891bc5adcf3..b8f7bab20045cfaf448bad3abdae61582b91eb5a 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 fb0350daa97ade22dca884087e85b51d46830224..4853ce4713dec04562f276aae50d80c8af088f8f 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