From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A812139450DA; Fri, 9 Oct 2020 08:13:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A812139450DA From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97347] [11 Regression] error: statement marked for throw in middle of block in botan Date: Fri, 09 Oct 2020 08:13:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: version assigned_to 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2020 08:13:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97347 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Version|10.0 |11.0 Assignee|marxin at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #1 from Richard Biener --- Since we're really want to insert on the edge and merely assert that will be possible we should instead do else { /* When we want to insert after a def where the defining stmt throws then insert on the fallth= ru edge. */ edge e =3D find_fallthru_edge (gimple_bb (insert_after->stmt)->succs= ); basic_block new_bb =3D gsi_insert_seq_on_edge_immediate (e, ctor_s= eq); gcc_assert (!new_bb); } possibly even allowing a new BB to be created (though our region collection restrictions should not make this necessary). Let me take this.=