From e06ed0c4aa60b94d2889295995ea37791f5b0271 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 22 Aug 2014 20:09:21 +0000 Subject: [PATCH] recog.c: Use rtx_insn gcc/ * recog.c (split_insn): Strengthen param "insn" and locals "first", "last" from rtx to rtx_insn *. (split_all_insns): Likewise for locals "insn", "next". (split_all_insns_noflow): Likewise. From-SVN: r214363 --- gcc/ChangeLog | 7 +++++++ gcc/recog.c | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d47b69b..1922ae4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2014-08-22 David Malcolm + * recog.c (split_insn): Strengthen param "insn" and locals + "first", "last" from rtx to rtx_insn *. + (split_all_insns): Likewise for locals "insn", "next". + (split_all_insns_noflow): Likewise. + +2014-08-22 David Malcolm + * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to const rtx_insn *. (debug_rtx_range): Likewise for params 1 and 2 "start" and "end". diff --git a/gcc/recog.c b/gcc/recog.c index 167b044..cef60f1 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -59,7 +59,7 @@ along with GCC; see the file COPYING3. If not see static void validate_replace_rtx_1 (rtx *, rtx, rtx, rtx, bool); static void validate_replace_src_1 (rtx *, void *); -static rtx split_insn (rtx); +static rtx split_insn (rtx_insn *); struct target_recog default_target_recog; #if SWITCHABLE_TARGET @@ -2772,11 +2772,11 @@ reg_fits_class_p (const_rtx operand, reg_class_t cl, int offset, or NULL if unsuccessful. */ static rtx -split_insn (rtx insn) +split_insn (rtx_insn *insn) { /* Split insns here to get max fine-grain parallelism. */ - rtx first = PREV_INSN (insn); - rtx last = try_split (PATTERN (insn), insn, 1); + rtx_insn *first = PREV_INSN (insn); + rtx_insn *last = try_split (PATTERN (insn), insn, 1); rtx insn_set, last_set, note; if (last == insn) @@ -2837,7 +2837,7 @@ split_all_insns (void) FOR_EACH_BB_REVERSE_FN (bb, cfun) { - rtx insn, next; + rtx_insn *insn, *next; bool finish = false; rtl_profile_for_bb (bb); @@ -2893,7 +2893,7 @@ split_all_insns (void) unsigned int split_all_insns_noflow (void) { - rtx next, insn; + rtx_insn *next, *insn; for (insn = get_insns (); insn; insn = next) { -- 2.7.4