Commit e5b51ca0 by David Malcolm Committed by David Malcolm

fixup_args_size_notes takes a pair of rtx_insn

gcc/
2014-09-05  David Malcolm  <dmalcolm@redhat.com>

	* emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
	fixup_args_size_notes.
	* expr.c (fixup_args_size_notes): Strengthen first two params from
	rtx to rtx_insn *, eliminating a checked cast.
	* rtl.h (fixup_args_size_notes): Strengthen first two params from
	rtx to rtx_insn *.

From-SVN: r214930
parent 6a263466
2014-09-05 David Malcolm <dmalcolm@redhat.com> 2014-09-05 David Malcolm <dmalcolm@redhat.com>
* emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
fixup_args_size_notes.
* expr.c (fixup_args_size_notes): Strengthen first two params from
rtx to rtx_insn *, eliminating a checked cast.
* rtl.h (fixup_args_size_notes): Strengthen first two params from
rtx to rtx_insn *.
2014-09-05 David Malcolm <dmalcolm@redhat.com>
* haifa-sched.c (get_ready_element): Strengthen return type from * haifa-sched.c (get_ready_element): Strengthen return type from
rtx to rtx_insn *. rtx to rtx_insn *.
* sched-int.h (get_ready_element): Likewise. * sched-int.h (get_ready_element): Likewise.
...@@ -3756,7 +3756,7 @@ try_split (rtx pat, rtx uncast_trial, int last) ...@@ -3756,7 +3756,7 @@ try_split (rtx pat, rtx uncast_trial, int last)
#endif #endif
case REG_ARGS_SIZE: case REG_ARGS_SIZE:
fixup_args_size_notes (NULL_RTX, insn_last, INTVAL (XEXP (note, 0))); fixup_args_size_notes (NULL, insn_last, INTVAL (XEXP (note, 0)));
break; break;
case REG_CALL_DECL: case REG_CALL_DECL:
......
...@@ -3953,9 +3953,8 @@ find_args_size_adjust (rtx insn) ...@@ -3953,9 +3953,8 @@ find_args_size_adjust (rtx insn)
} }
int int
fixup_args_size_notes (rtx prev, rtx uncast_last, int end_args_size) fixup_args_size_notes (rtx_insn *prev, rtx_insn *last, int end_args_size)
{ {
rtx_insn *last = safe_as_a <rtx_insn *> (uncast_last);
int args_size = end_args_size; int args_size = end_args_size;
bool saw_unknown = false; bool saw_unknown = false;
rtx_insn *insn; rtx_insn *insn;
......
...@@ -3363,7 +3363,7 @@ extern void emit_jump (rtx); ...@@ -3363,7 +3363,7 @@ extern void emit_jump (rtx);
extern rtx move_by_pieces (rtx, rtx, unsigned HOST_WIDE_INT, extern rtx move_by_pieces (rtx, rtx, unsigned HOST_WIDE_INT,
unsigned int, int); unsigned int, int);
extern HOST_WIDE_INT find_args_size_adjust (rtx); extern HOST_WIDE_INT find_args_size_adjust (rtx);
extern int fixup_args_size_notes (rtx, rtx, int); extern int fixup_args_size_notes (rtx_insn *, rtx_insn *, int);
/* In cfgrtl.c */ /* In cfgrtl.c */
extern void print_rtl_with_bb (FILE *, const rtx_insn *, int); extern void print_rtl_with_bb (FILE *, const rtx_insn *, int);
......
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