Commit 49506606 by David Malcolm Committed by David Malcolm

Remove a cast in cse.c

gcc/
2014-09-05  David Malcolm  <dmalcolm@redhat.com>

	* cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
	rtx_insn *, eliminating a checked cast.

From-SVN: r214932
parent 8f6bce51
2014-09-05 David Malcolm <dmalcolm@redhat.com>
* cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
rtx_insn *, eliminating a checked cast.
2014-09-05 David Malcolm <dmalcolm@redhat.com>
* rtl.h (modified_between_p): Strengthen params 2 and 3 from
const_rtx to const rtx_insn *.
* rtlanal.c (modified_between_p): Likewise, eliminating a checked
......@@ -5435,7 +5435,8 @@ cse_insn (rtx_insn *insn)
and hope for the best. */
if (n_sets == 1)
{
rtx new_rtx, note;
rtx_insn *new_rtx;
rtx note;
new_rtx = emit_jump_insn_before (gen_jump (XEXP (src, 0)), insn);
JUMP_LABEL (new_rtx) = XEXP (src, 0);
......@@ -5450,7 +5451,7 @@ cse_insn (rtx_insn *insn)
}
delete_insn_and_edges (insn);
insn = as_a <rtx_insn *> (new_rtx);
insn = new_rtx;
}
else
INSN_CODE (insn) = -1;
......
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