Commit 49922db8 by David Malcolm Committed by David Malcolm

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
parent 0043f37d
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 *.
......
......@@ -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;
......
......@@ -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\
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment