From: David Malcolm Date: Mon, 25 Aug 2014 20:31:34 +0000 (+0000) Subject: reorder_insns requires rtx_insn * X-Git-Tag: upstream/12.2.0~60844 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac9d2d2c35b2f937bcd40d361ec2e27dfe38f3ee;p=platform%2Fupstream%2Fgcc.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 8cb0164..66086ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 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 locals "returnjump", "epilogue_end", "insn", "next". diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 2d7d854..aaf9c7d 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 a4b5e10..8aca73c 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);