From f0cb8ae0d93a2a6d262414b8a662682db5c13368 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 25 Aug 2014 21:00:03 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 9 +++++++++ gcc/final.c | 3 +-- gcc/output.h | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 431cd156f75..1c1393fc55a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2014-08-25 David Malcolm + + * 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 * output.h (final): Strengthen param 1 from rtx to rtx_insn *. diff --git a/gcc/final.c b/gcc/final.c index bfd98ca1431..1c35c41193c 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1729,10 +1729,9 @@ reemit_insn_block_notes (void) test and compare insns. */ void -final_start_function (rtx uncast_first, FILE *file, +final_start_function (rtx_insn *first, FILE *file, int optimize_p ATTRIBUTE_UNUSED) { - rtx_insn *first = safe_as_a (uncast_first); block_depth = 0; this_is_asm_operands = 0; diff --git a/gcc/output.h b/gcc/output.h index b4c8c479dcc..a3a5d78e8a2 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -57,7 +57,7 @@ extern void shorten_branches (rtx_insn *); for the new function. The label for the function and associated assembler pseudo-ops have already been output in `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. For clarity, args are same as those of `final_start_function' -- 2.30.2