From a943bf7a5b77b48b040d42588a44da8959057bfb Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 25 Aug 2014 20:56:14 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 +++++++ gcc/final.c | 3 +-- gcc/output.h | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aa32c0d8bf2..431cd156f75 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-08-25 David Malcolm + + * 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 * output.h (shorten_branches): Strengthen param from rtx to diff --git a/gcc/final.c b/gcc/final.c index 3176fbd254c..bfd98ca1431 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -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. */ 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 (uncast_first); rtx_insn *insn, *next; int seen = 0; diff --git a/gcc/output.h b/gcc/output.h index 05e7666d419..b4c8c479dcc 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -65,7 +65,7 @@ extern void final_start_function (rtx, FILE *, int); extern void final_end_function (void); /* 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 that INSN is the insn being scanned. Value returned is the next insn to -- 2.30.2