diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-29 00:14:43 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-29 00:14:43 +0000 |
commit | ffd80b43481c1b55b40dda064cf04293c3765632 (patch) | |
tree | 0b0d18974b4b5b3003eccf7a3515026677ac5d93 | |
parent | cbba639cdd2a5fe2b18cc0a0c3efed94d0f5e520 (diff) | |
download | gcc-ffd80b43481c1b55b40dda064cf04293c3765632.zip gcc-ffd80b43481c1b55b40dda064cf04293c3765632.tar.gz gcc-ffd80b43481c1b55b40dda064cf04293c3765632.tar.bz2 |
Strengthen params to active_insn_between
gcc/
2014-08-28 David Malcolm <dmalcolm@redhat.com>
* shrink-wrap.h (active_insn_between): Strengthen both params from
rtx to rtx_insn *.
* function.c (active_insn_between): Likewise.
From-SVN: r214704
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/function.c | 3 | ||||
-rw-r--r-- | gcc/shrink-wrap.h | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 470d0d3..83b959a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2014-08-28 David Malcolm <dmalcolm@redhat.com> + * shrink-wrap.h (active_insn_between): Strengthen both params from + rtx to rtx_insn *. + * function.c (active_insn_between): Likewise. + +2014-08-28 David Malcolm <dmalcolm@redhat.com> + * genattr.c (main): When writing out insn-attr.h, strengthen param of dfa_clear_single_insn_cache from rtx to rtx_insn *. * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when diff --git a/gcc/function.c b/gcc/function.c index 54fb9b4..dc9c06b 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5426,9 +5426,8 @@ set_return_jump_label (rtx returnjump) #if defined (HAVE_return) || defined (HAVE_simple_return) /* Return true if there are any active insns between HEAD and TAIL. */ bool -active_insn_between (rtx head, rtx uncast_tail) +active_insn_between (rtx_insn *head, rtx_insn *tail) { - rtx_insn *tail = safe_as_a <rtx_insn *> (uncast_tail); while (tail) { if (active_insn_p (tail)) diff --git a/gcc/shrink-wrap.h b/gcc/shrink-wrap.h index 647c076..29bdcfd 100644 --- a/gcc/shrink-wrap.h +++ b/gcc/shrink-wrap.h @@ -27,7 +27,7 @@ along with GCC; see the file COPYING3. If not see #ifdef HAVE_simple_return /* In function.c. */ extern void emit_return_into_block (bool simple_p, basic_block bb); -extern bool active_insn_between (rtx head, rtx tail); +extern bool active_insn_between (rtx_insn *head, rtx_insn *tail); extern vec<edge> convert_jumps_to_returns (basic_block last_bb, bool simple_p, vec<edge> unconverted); extern basic_block emit_return_for_exit (edge exit_fallthru_edge, |