From: dmalcolm Date: Mon, 25 Aug 2014 20:56:14 +0000 (+0000) Subject: final accepts an rtx_insn X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f124fa955838965048df4aaffabfe693c5861ac;p=thirdparty%2Fgcc.git 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 *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214479 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aa32c0d8bf2f..431cd156f754 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 3176fbd254cf..bfd98ca14314 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 05e7666d419c..b4c8c479dcca 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