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. From-SVN: r214593
This commit is contained in:
parent
292d1dfba6
commit
2a62e439fb
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
||||
2014-08-27 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
|
||||
|
|
12
gcc/except.c
12
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;
|
||||
|
|
Loading…
Reference in New Issue