diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-21 00:59:41 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-21 00:59:41 +0000 |
commit | 62fc98cc67f69de81efc2525b8cc921eaf913cd7 (patch) | |
tree | 61d54da74ca95a60171f16be69da0efbaedd7a81 /gcc/rtlanal.c | |
parent | fbecdc83824c4158ba7047226266719fb51bc412 (diff) | |
download | gcc-62fc98cc67f69de81efc2525b8cc921eaf913cd7.zip gcc-62fc98cc67f69de81efc2525b8cc921eaf913cd7.tar.gz gcc-62fc98cc67f69de81efc2525b8cc921eaf913cd7.tar.bz2 |
find_first_parameter_load returns an rtx_insn
2014-08-21 David Malcolm <dmalcolm@redhat.com>
* 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
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <rtx_insn *> (first_set); } /* Return true if we should avoid inserting code between INSN and preceding |