summaryrefslogtreecommitdiff
path: root/gcc/jump.c
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-27 20:08:32 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-27 20:08:32 +0000
commita3f9638d9784023caa0a74af09d4828a574f0007 (patch)
treecc344ee85163a4e1295a0d6f8cbbc53953b8427b /gcc/jump.c
parent9e21f364010a1191032ff2f5aeb6888aa28368ac (diff)
downloadgcc-a3f9638d9784023caa0a74af09d4828a574f0007.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214596 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r--gcc/jump.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index cc0eb028527..a28300c2d73 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -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: