OSDN Git Service

PR rtl-optimization/31391
[pf3gnuchains/gcc-fork.git] / gcc / cfgcleanup.c
index ee5c69b..c2595ea 100644 (file)
@@ -2034,6 +2034,8 @@ try_optimize_cfg (int mode)
 
                      reorder_insns_nobb (label, label, bb_note);
                      BB_HEAD (b) = bb_note;
+                     if (BB_END (b) == bb_note)
+                       BB_END (b) = label;
                    }
                  if (dump_file)
                    fprintf (dump_file, "Deleted label in block %i.\n",