From: David Malcolm Date: Wed, 27 Aug 2014 20:08:32 +0000 (+0000) Subject: jump.c: Use rtx_sequence X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33d9cde485f08edc7ada941aef9229312f38f8ed;p=gcc.git jump.c: Use rtx_sequence gcc/ 2014-08-27 David Malcolm * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b33726443b..4b84f5c237b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-08-27 David Malcolm + + * 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 * function.c (contains): Introduce local "seq" for PATTERN (insn), 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 (x); + for (i = 0; i < seq->len (); i++) + mark_jump_label (PATTERN (seq->insn (i)), + seq->insn (i), 0); + } return; case SYMBOL_REF: