From 1d628b1536253c8b18d1b800f287722a098a4dfe Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 1 Jul 2015 08:41:33 +0000 Subject: [PATCH] re PR middle-end/66685 (conftest.c:16:1: internal compiler error: in as_a, at is-a.h:192) gcc/ PR bootstrap/66685 * rtl.c (classify_insn): Handle returns in PARALLELs. From-SVN: r225230 --- gcc/ChangeLog | 5 +++++ gcc/rtl.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index abbdf464161..40754f10c94 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-07-01 Richard Sandiford + + PR bootstrap/66685 + * rtl.c (classify_insn): Handle returns in PARALLELs. + 2015-07-01 Eric Botcazou PR middle-end/66633 diff --git a/gcc/rtl.c b/gcc/rtl.c index 346155e9faf..2f32c649b4d 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -686,6 +686,8 @@ classify_insn (rtx x) for (j = XVECLEN (x, 0) - 1; j >= 0; j--) if (GET_CODE (XVECEXP (x, 0, j)) == CALL) return CALL_INSN; + else if (ANY_RETURN_P (XVECEXP (x, 0, j))) + return JUMP_INSN; else if (GET_CODE (XVECEXP (x, 0, j)) == SET && GET_CODE (SET_DEST (XVECEXP (x, 0, j))) == PC) return JUMP_INSN; -- 2.30.2