diff options
Diffstat (limited to 'gcc/except.c')
-rw-r--r-- | gcc/except.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/except.c b/gcc/except.c index a0a81bc..889dd61 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -2892,7 +2892,16 @@ can_throw_external (const_rtx insn) if (NONJUMP_INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE) - insn = XVECEXP (PATTERN (insn), 0, 0); + { + rtx seq = PATTERN (insn); + int i, n = XVECLEN (seq, 0); + + for (i = 0; i < n; i++) + if (can_throw_external (XVECEXP (seq, 0, i))) + return true; + + return false; + } note = find_reg_note (insn, REG_EH_REGION, NULL_RTX); if (!note) |