From: David Malcolm Date: Mon, 25 Aug 2014 20:53:38 +0000 (+0000) Subject: shorten_branches takes an rtx_insn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49922db8a0acde8f294b6f9feb2b5089978be501;p=gcc.git shorten_branches takes an rtx_insn 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ae868f0496b..aa32c0d8bf2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2014-08-25 David Malcolm + + * 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 * sched-int.h (struct haifa_sched_info): Strengthen fields diff --git a/gcc/final.c b/gcc/final.c index 8cef83dbc40..3176fbd254c 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -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 (uncast_first); rtx_insn *insn; int max_uid; int i; diff --git a/gcc/genattr.c b/gcc/genattr.c index 44550c0b637..d2d12e012d2 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -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\ diff --git a/gcc/output.h b/gcc/output.h index 0b637372b56..05e7666d419 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -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