* bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
emit into a sequence instead.
From-SVN: r217088
+2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
+
+ * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
+ emit into a sequence instead.
+
2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
rtx_insn *label, *jump;
int length;
- label = emit_label_before (gen_label_rtx (), get_insns ());
+ start_sequence ();
+ label = emit_label (gen_label_rtx ());
jump = emit_jump_insn (gen_jump (label));
-
length = get_attr_min_length (jump);
+ end_sequence ();
- delete_insn (jump);
- delete_insn (label);
return length;
}