shorten_branches takes an rtx_insn
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Aug 2014 20:53:38 +0000 (20:53 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Aug 2014 20:53:38 +0000 (20:53 +0000)
gcc/
* output.h (shorten_branches): Strengthen param from rtx to
rtx_insn *.

* final.c (shorten_branches): Likewise, renaming param back from
"uncast_first" to "first", and dropping the checked cast from rtx
to rtx_insn *.

* genattr.c (gen_attr): Likewise when writing out the prototype of
shorten_branches.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214478 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ae868f0..aa32c0d 100644 (file)
@@ -1,5 +1,17 @@
 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
 
+       * output.h (shorten_branches): Strengthen param from rtx to
+       rtx_insn *.
+
+       * final.c (shorten_branches): Likewise, renaming param back from
+       "uncast_first" to "first", and dropping the checked cast from rtx
+       to rtx_insn *.
+
+       * genattr.c (gen_attr): Likewise when writing out the prototype of
+       shorten_branches.
+
+2014-08-25  David Malcolm  <dmalcolm@redhat.com>
+
        * sched-int.h (struct haifa_sched_info): Strengthen fields
        "prev_head" and "next_tail" from rtx to rtx_insn *.
 
index 8cef83d..3176fbd 100644 (file)
@@ -899,9 +899,8 @@ make_pass_compute_alignments (gcc::context *ctxt)
    slots.  */
 
 void
-shorten_branches (rtx uncast_first)
+shorten_branches (rtx_insn *first)
 {
-  rtx_insn *first = safe_as_a <rtx_insn *> (uncast_first);
   rtx_insn *insn;
   int max_uid;
   int i;
index 44550c0..d2d12e0 100644 (file)
@@ -65,7 +65,7 @@ gen_attr (rtx attr)
   if (! strcmp (XSTR (attr, 0), "length"))
     {
       puts ("\
-extern void shorten_branches (rtx);\n\
+extern void shorten_branches (rtx_insn *);\n\
 extern int insn_default_length (rtx);\n\
 extern int insn_min_length (rtx);\n\
 extern int insn_variable_length_p (rtx);\n\
index 0b63737..05e7666 100644 (file)
@@ -50,7 +50,7 @@ extern int get_attr_min_length (rtx);
 
 /* Make a pass over all insns and compute their actual lengths by shortening
    any branches of variable length if possible.  */
-extern void shorten_branches (rtx);
+extern void shorten_branches (rtx_insn *);
 
 /* Output assembler code for the start of a function,
    and initialize some of the variables in this file