From: David Malcolm Date: Wed, 27 Aug 2014 20:01:32 +0000 (+0000) Subject: except.c: Use rtx_sequence X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a62e439fb7289b71e2e9eb500091b561a8fe1f7;p=gcc.git except.c: Use rtx_sequence gcc/ 2014-08-27 David Malcolm * except.c (can_throw_external): Strengthen local "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence. (insn_nothrow_p): Likewise. From-SVN: r214593 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ef2cd0a93f..16c94db59d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-08-27 David Malcolm + + * except.c (can_throw_external): Strengthen local "seq" from rtx + to rtx_sequence *. Use methods of rtx_sequence. + (insn_nothrow_p): Likewise. + 2014-08-27 David Malcolm * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a diff --git a/gcc/except.c b/gcc/except.c index 7decba5b143..05da989e32a 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -1877,11 +1877,11 @@ can_throw_external (const_rtx insn) if (NONJUMP_INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE) { - rtx seq = PATTERN (insn); - int i, n = XVECLEN (seq, 0); + rtx_sequence *seq = as_a (PATTERN (insn)); + int i, n = seq->len (); for (i = 0; i < n; i++) - if (can_throw_external (XVECEXP (seq, 0, i))) + if (can_throw_external (seq->element (i))) return true; return false; @@ -1921,11 +1921,11 @@ insn_nothrow_p (const_rtx insn) if (NONJUMP_INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE) { - rtx seq = PATTERN (insn); - int i, n = XVECLEN (seq, 0); + rtx_sequence *seq = as_a (PATTERN (insn)); + int i, n = seq->len (); for (i = 0; i < n; i++) - if (!insn_nothrow_p (XVECEXP (seq, 0, i))) + if (!insn_nothrow_p (seq->element (i))) return false; return true;