Commit ffd80b43 by David Malcolm Committed by David Malcolm

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
parent cbba639c
2014-08-28 David Malcolm <dmalcolm@redhat.com> 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 * genattr.c (main): When writing out insn-attr.h, strengthen param
of dfa_clear_single_insn_cache from rtx to rtx_insn *. of dfa_clear_single_insn_cache from rtx to rtx_insn *.
* genautomata.c (output_dfa_clean_insn_cache_func): Likewise when * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
...@@ -5426,9 +5426,8 @@ set_return_jump_label (rtx returnjump) ...@@ -5426,9 +5426,8 @@ set_return_jump_label (rtx returnjump)
#if defined (HAVE_return) || defined (HAVE_simple_return) #if defined (HAVE_return) || defined (HAVE_simple_return)
/* Return true if there are any active insns between HEAD and TAIL. */ /* Return true if there are any active insns between HEAD and TAIL. */
bool 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) while (tail)
{ {
if (active_insn_p (tail)) if (active_insn_p (tail))
......
...@@ -27,7 +27,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -27,7 +27,7 @@ along with GCC; see the file COPYING3. If not see
#ifdef HAVE_simple_return #ifdef HAVE_simple_return
/* In function.c. */ /* In function.c. */
extern void emit_return_into_block (bool simple_p, basic_block bb); 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, extern vec<edge> convert_jumps_to_returns (basic_block last_bb, bool simple_p,
vec<edge> unconverted); vec<edge> unconverted);
extern basic_block emit_return_for_exit (edge exit_fallthru_edge, extern basic_block emit_return_for_exit (edge exit_fallthru_edge,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment