From 62fc98cc67f69de81efc2525b8cc921eaf913cd7 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 21 Aug 2014 00:59:41 +0000 Subject: find_first_parameter_load returns an rtx_insn 2014-08-21 David Malcolm * rtl.h (find_first_parameter_load): Strengthen return type from rtx to rtx_insn *. * rtlanal.c (find_first_parameter_load): Strengthen return type from rtx to rtx_insn *. Add checked cast for now, to postpone strengthening the params. From-SVN: r214252 --- gcc/ChangeLog | 8 ++++++++ gcc/rtl.h | 2 +- gcc/rtlanal.c | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1067203..3ae6bf2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-08-21 David Malcolm + + * rtl.h (find_first_parameter_load): Strengthen return type from + rtx to rtx_insn *. + * rtlanal.c (find_first_parameter_load): Strengthen return type + from rtx to rtx_insn *. Add checked cast for now, to postpone + strengthening the params. + 2014-08-21 Manuel López-Ibáñez PR fortran/44054 diff --git a/gcc/rtl.h b/gcc/rtl.h index b6a21b6..99d2d64 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2641,7 +2641,7 @@ extern int auto_inc_p (const_rtx); extern int in_expr_list_p (const_rtx, const_rtx); extern void remove_node_from_expr_list (const_rtx, rtx *); extern int loc_mentioned_in_p (rtx *, const_rtx); -extern rtx find_first_parameter_load (rtx, rtx); +extern rtx_insn *find_first_parameter_load (rtx, rtx); extern bool keep_with_call_p (const_rtx); extern bool label_is_jump_target_p (const_rtx, const_rtx); extern int insn_rtx_cost (rtx, bool); diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index bc16437..f8d28b2 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -3684,7 +3684,7 @@ parms_set (rtx x, const_rtx pat ATTRIBUTE_UNUSED, void *data) found if CSE has eliminated some of them (e.g., an argument to the outer function is passed down as a parameter). Do not skip BOUNDARY. */ -rtx +rtx_insn * find_first_parameter_load (rtx call_insn, rtx boundary) { struct parms_set_data parm; @@ -3746,7 +3746,7 @@ find_first_parameter_load (rtx call_insn, rtx boundary) break; } } - return first_set; + return safe_as_a (first_set); } /* Return true if we should avoid inserting code between INSN and preceding -- cgit v1.1