Commit f0cb8ae0 by David Malcolm Committed by David Malcolm

final_start_function takes an rtx_insn

gcc/
	* output.h (final_start_function): Strengthen param 1 from rtx to
	rtx_insn *.

	* final.c (final_start_function): Likewise, renaming back from
	"uncast_first" to "first", and dropping the checked cast from rtx
	to rtx_insn *.

From-SVN: r214480
parent a943bf7a
2014-08-25 David Malcolm <dmalcolm@redhat.com> 2014-08-25 David Malcolm <dmalcolm@redhat.com>
* output.h (final_start_function): Strengthen param 1 from rtx to
rtx_insn *.
* final.c (final_start_function): Likewise, renaming back from
"uncast_first" to "first", and dropping the checked cast from rtx
to rtx_insn *.
2014-08-25 David Malcolm <dmalcolm@redhat.com>
* output.h (final): Strengthen param 1 from rtx to rtx_insn *. * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
* final.c (final): Likewise. Rename param back from * final.c (final): Likewise. Rename param back from
"uncast_first" to "first" and eliminate the checked cast from rtx "uncast_first" to "first" and eliminate the checked cast from rtx
......
...@@ -1729,10 +1729,9 @@ reemit_insn_block_notes (void) ...@@ -1729,10 +1729,9 @@ reemit_insn_block_notes (void)
test and compare insns. */ test and compare insns. */
void void
final_start_function (rtx uncast_first, FILE *file, final_start_function (rtx_insn *first, FILE *file,
int optimize_p ATTRIBUTE_UNUSED) int optimize_p ATTRIBUTE_UNUSED)
{ {
rtx_insn *first = safe_as_a <rtx_insn *> (uncast_first);
block_depth = 0; block_depth = 0;
this_is_asm_operands = 0; this_is_asm_operands = 0;
......
...@@ -57,7 +57,7 @@ extern void shorten_branches (rtx_insn *); ...@@ -57,7 +57,7 @@ extern void shorten_branches (rtx_insn *);
for the new function. The label for the function and associated for the new function. The label for the function and associated
assembler pseudo-ops have already been output in assembler pseudo-ops have already been output in
`assemble_start_function'. */ `assemble_start_function'. */
extern void final_start_function (rtx, FILE *, int); extern void final_start_function (rtx_insn *, FILE *, int);
/* Output assembler code for the end of a function. /* Output assembler code for the end of a function.
For clarity, args are same as those of `final_start_function' For clarity, args are same as those of `final_start_function'
......
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