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.
From-SVN: r214478
+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
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;
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\
/* 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