Commit a943bf7a by David Malcolm Committed by David Malcolm

final accepts an rtx_insn

gcc/
	* output.h (final): Strengthen param 1 from rtx to rtx_insn *.
	* final.c (final): Likewise.  Rename param back from
	"uncast_first" to "first" and eliminate the checked cast from rtx
	to rtx_insn *.

From-SVN: r214479
parent 49922db8
2014-08-25 David Malcolm <dmalcolm@redhat.com> 2014-08-25 David Malcolm <dmalcolm@redhat.com>
* output.h (final): Strengthen param 1 from rtx to rtx_insn *.
* final.c (final): Likewise. Rename param back from
"uncast_first" to "first" and eliminate the checked cast from rtx
to rtx_insn *.
2014-08-25 David Malcolm <dmalcolm@redhat.com>
* output.h (shorten_branches): Strengthen param from rtx to * output.h (shorten_branches): Strengthen param from rtx to
rtx_insn *. rtx_insn *.
......
...@@ -1958,9 +1958,8 @@ dump_basic_block_info (FILE *file, rtx_insn *insn, basic_block *start_to_bb, ...@@ -1958,9 +1958,8 @@ dump_basic_block_info (FILE *file, rtx_insn *insn, basic_block *start_to_bb,
For description of args, see `final_start_function', above. */ For description of args, see `final_start_function', above. */
void void
final (rtx uncast_first, FILE *file, int optimize_p) final (rtx_insn *first, FILE *file, int optimize_p)
{ {
rtx_insn *first = safe_as_a <rtx_insn *> (uncast_first);
rtx_insn *insn, *next; rtx_insn *insn, *next;
int seen = 0; int seen = 0;
......
...@@ -65,7 +65,7 @@ extern void final_start_function (rtx, FILE *, int); ...@@ -65,7 +65,7 @@ extern void final_start_function (rtx, FILE *, int);
extern void final_end_function (void); extern void final_end_function (void);
/* Output assembler code for some insns: all or part of a function. */ /* Output assembler code for some insns: all or part of a function. */
extern void final (rtx, FILE *, int); extern void final (rtx_insn *, FILE *, int);
/* The final scan for one insn, INSN. Args are same as in `final', except /* The final scan for one insn, INSN. Args are same as in `final', except
that INSN is the insn being scanned. Value returned is the next insn to that INSN is the insn being scanned. Value returned is the next insn to
......
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