summaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-27 20:01:32 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-27 20:01:32 +0000
commitb01ac5847e7b7a9b22420a8d041cfbd1143862e1 (patch)
treefbd5215428bbf5e216b8bd722b8311b0f501df68 /gcc/except.c
parentb873289f3df7d9b77d509106701b91d638ffef34 (diff)
downloadgcc-b01ac5847e7b7a9b22420a8d041cfbd1143862e1.tar.gz
except.c: Use rtx_sequence
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * except.c (can_throw_external): Strengthen local "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence. (insn_nothrow_p): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214593 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c12
1 files changed, 6 insertions, 6 deletions
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 <rtx_sequence *> (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 <rtx_sequence *> (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;