aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-28 20:49:58 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-28 20:49:58 +0000
commit9321cf00db4930103c0e473e82f12135404c22ba (patch)
treef677bb27a1e6ea39bcd5c3b8a8062db4a6ee4309 /gcc/rtlanal.c
parentbdda9b179dab8cce7cb1308d327fc6eb9ba53694 (diff)
downloadgcc-9321cf00db4930103c0e473e82f12135404c22ba.zip
gcc-9321cf00db4930103c0e473e82f12135404c22ba.tar.gz
gcc-9321cf00db4930103c0e473e82f12135404c22ba.tar.bz2
find_first_parameter_load params and return type
gcc/ 2014-08-28 David Malcolm <dmalcolm@redhat.com> * rtl.h (find_first_parameter_load): Strengthen return type and both params from rtx to rtx_insn *. * rtlanal.c (find_first_parameter_load): Strengthen return type, both params and locals "before", "first_set" from rtx to rtx_insn *. Remove now-redundant cast. * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX. From-SVN: r214695
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index e95be62..76c4bf0 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -3726,10 +3726,11 @@ parms_set (rtx x, const_rtx pat ATTRIBUTE_UNUSED, void *data)
to the outer function is passed down as a parameter).
Do not skip BOUNDARY. */
rtx_insn *
-find_first_parameter_load (rtx call_insn, rtx boundary)
+find_first_parameter_load (rtx_insn *call_insn, rtx_insn *boundary)
{
struct parms_set_data parm;
- rtx p, before, first_set;
+ rtx p;
+ rtx_insn *before, *first_set;
/* Since different machines initialize their parameter registers
in different orders, assume nothing. Collect the set of all
@@ -3787,7 +3788,7 @@ find_first_parameter_load (rtx call_insn, rtx boundary)
break;
}
}
- return safe_as_a <rtx_insn *> (first_set);
+ return first_set;
}
/* Return true if we should avoid inserting code between INSN and preceding