From: David Malcolm Date: Mon, 25 Aug 2014 20:31:34 +0000 (+0000) Subject: reorder_insns requires rtx_insn * X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac9d2d2c35b2f937bcd40d361ec2e27dfe38f3ee;p=gcc.git reorder_insns requires rtx_insn * gcc/ * rtl.h (reorder_insns): Strengthen params "from", "to", "after" from rtx to rtx_insn *. * emit-rtl.c (reorder_insns): Likewise, also for local "insn". From-SVN: r214473 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cb016471c3..66086adbf53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-08-25 David Malcolm + + * rtl.h (reorder_insns): Strengthen params "from", "to", "after" + from rtx to rtx_insn *. + + * emit-rtl.c (reorder_insns): Likewise, also for local "insn". + 2014-08-25 David Malcolm * function.c (thread_prologue_and_epilogue_insns): Likewise for diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 2d7d8540959..aaf9c7d0858 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -4213,9 +4213,9 @@ reorder_insns_nobb (rtx from, rtx to, rtx after) /* Same as function above, but take care to update BB boundaries. */ void -reorder_insns (rtx from, rtx to, rtx after) +reorder_insns (rtx_insn *from, rtx_insn *to, rtx_insn *after) { - rtx prev = PREV_INSN (from); + rtx_insn *prev = PREV_INSN (from); basic_block bb, bb2; reorder_insns_nobb (from, to, after); diff --git a/gcc/rtl.h b/gcc/rtl.h index a4b5e10673f..8aca73cc2cf 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -3075,7 +3075,7 @@ extern void mark_reg_pointer (rtx, int); extern void mark_user_reg (rtx); extern void reset_used_flags (rtx); extern void set_used_flags (rtx); -extern void reorder_insns (rtx, rtx, rtx); +extern void reorder_insns (rtx_insn *, rtx_insn *, rtx_insn *); extern void reorder_insns_nobb (rtx, rtx, rtx); extern int get_max_insn_count (void); extern int in_sequence_p (void);