]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
final accepts an rtx_insn
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Aug 2014 20:56:14 +0000 (20:56 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Aug 2014 20:56:14 +0000 (20:56 +0000)
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

gcc/ChangeLog
gcc/final.c
gcc/output.h

index aa32c0d8bf2f3240a82d9c3392c6008624279c72..431cd156f754c0fb28cc8956d65197641c773b19 100644 (file)
@@ -1,3 +1,10 @@
+2014-08-25  David Malcolm  <dmalcolm@redhat.com>
+
+       * 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  <dmalcolm@redhat.com>
 
        * output.h (shorten_branches): Strengthen param from rtx to
index 3176fbd254cf996e4f8b8b855d352983ce0e19ec..bfd98ca143147416370614d73500a7a25d46e70f 100644 (file)
@@ -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 <rtx_insn *> (uncast_first);
   rtx_insn *insn, *next;
   int seen = 0;
 
index 05e7666d419c009727c26b8440d259f7ac74a003..b4c8c479dccad4a77453b85692a6be4942ff96ee 100644 (file)
@@ -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