jump.c: Use rtx_sequence

gcc/
2014-08-27  David Malcolm  <dmalcolm@redhat.com>

	* jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
	local "seq" with a checked cast, and use methods of rtx_sequence
	to clarify the code.

From-SVN: r214596
This commit is contained in:
David Malcolm 2014-08-27 20:08:32 +00:00 committed by David Malcolm
parent e094487071
commit 33d9cde485
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
local "seq" with a checked cast, and use methods of rtx_sequence
to clarify the code.
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* function.c (contains): Introduce local "seq" for PATTERN (insn),

View File

@ -1117,9 +1117,12 @@ mark_jump_label_1 (rtx x, rtx insn, bool in_mem, bool is_target)
break;
case SEQUENCE:
for (i = 0; i < XVECLEN (x, 0); i++)
mark_jump_label (PATTERN (XVECEXP (x, 0, i)),
XVECEXP (x, 0, i), 0);
{
rtx_sequence *seq = as_a <rtx_sequence *> (x);
for (i = 0; i < seq->len (); i++)
mark_jump_label (PATTERN (seq->insn (i)),
seq->insn (i), 0);
}
return;
case SYMBOL_REF: