Message ID | 5411A2BE.2000208@codesourcery.com |
---|---|
State | New |
Headers | show |
On Thu, Sep 11, 2014 at 3:25 PM, Bernd Schmidt wrote: > Bootstrapped and tested on x86_64-linux, together with the other patches. > Ok? This is OK. Ciao! Steven
* bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn, emit into a sequence instead. diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index b3f770d..789f1e9 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -1374,13 +1374,12 @@ get_uncond_jump_length (void) 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; }