This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 168/236] final_start_function takes an rtx_insn

All in-tree users of final_start_function now pass an rtx_insn * as the
first param.

	* 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.  */
-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'

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]