This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 168/236] final_start_function takes an rtx_insn
- From: David Malcolm <dmalcolm at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: David Malcolm <dmalcolm at redhat dot com>
- Date: Wed, 6 Aug 2014 13:22:27 -0400
- Subject: [PATCH 168/236] final_start_function takes an rtx_insn
- Authentication-results: sourceware.org; auth=none
- References: <1407345815-14551-1-git-send-email-dmalcolm at redhat dot com>
All in-tree users of final_start_function now pass an rtx_insn * as the
first param.
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 *.
---
gcc/final.c | 3 +--
gcc/output.h | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/gcc/final.c b/gcc/final.c
index 6937d0d..5e53b2e 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 = as_a_nullable <rtx_insn *> (uncast_first);
block_depth = 0;
this_is_asm_operands = 0;
diff --git a/gcc/output.h b/gcc/output.h
index b4c8c47..a3a5d78 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'
--
1.8.5.3