From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 19BC038582BC; Wed, 21 Jun 2023 11:08:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19BC038582BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687345686; bh=2kw1179ihOKJgLPml5uTiKyjWhdhCV3tbU4d2rvjeCA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wyM0vvjVPocvIqsMWJ9/x5rR5hg2tw8rDXHfaczECER8KvSruM1jofpsruXknjuAP 9YVXKmeoRHVvyZk7qYYF4n1ia8ZOe4OaXlVJ8RSjRAzhzwN7j9F/DVGhQcYDoJDEWP Y9Msk/ryYyrHyR9pyC4OyMA4P+rfCygLI+yfYgZY= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/110307] ICE in move_insn, at haifa-sched.cc:5473 when building Ruby on alpha with -fPIC -O2 (or -fpeephole2 -fschedule-insns2) Date: Wed, 21 Jun 2023 11:08:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 13.1.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110307 --- Comment #8 from Alexander Monakov --- REG_EH_REGION is handled further down that function, but copy_reg_eh_region_note_backward does not copy the note. Perhaps it needs diff --git a/gcc/except.cc b/gcc/except.cc index e728aa43b6..cfe140c4d0 100644 --- a/gcc/except.cc +++ b/gcc/except.cc @@ -1795,7 +1795,7 @@ copy_reg_eh_region_note_backward (rtx note_or_insn, rtx_insn *last, rtx first) note =3D XEXP (note, 0); for (insn =3D last; insn !=3D first; insn =3D PREV_INSN (insn)) - if (insn_could_throw_p (insn)) + if (insn_could_throw_p (insn) || can_nonlocal_goto (insn)) add_reg_note (insn, REG_EH_REGION, note); } ?=