From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 31EEE384D1B4; Thu, 20 Oct 2022 09:29:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31EEE384D1B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666258184; bh=j9RFOn/NGhri8E2M+naM5QTg6fU4qddsD5r1JzEWDeA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kIVy3O0ifCirJWJ+HTb1X8L1OKQ2aAaVwWqeGh0xoHtO2MDAZnom3vrDIZLOxNkcA X1CVshxLwiPqfg9Pj0QPFP/ayuzIt5NvZWxy7Hnjy8Gt0TacXG/QYFIwZcj0W4SgwN g5aQYDaPpPrIhnMegbP2Vcn5JXgs8t6Hp5Qw9jNI= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107306] [12/13 Regression] ICE: verify_gimple failed Date: Thu, 20 Oct 2022 09:29:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D107306 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:8e2b5cf7cde999582d1b8fff021faa487c8e34b0 commit r13-3397-g8e2b5cf7cde999582d1b8fff021faa487c8e34b0 Author: Richard Biener Date: Wed Oct 19 14:12:11 2022 +0200 c/107305 - avoid ICEing with invalid GIMPLE input to the GIMPLE FE The GIMPLE FE was designed to defer semantic error checking to the GIMPLE IL verifier. But that can end up causing spurious ICEs earlier and in fact it will report an internal error. The following tries to improve the situation by explicitely calling into the verifier from the parser and intructing it to not ICE but instead zap the parsed body after an error is discovered. PR c/107305 PR c/107306 gcc/c/ * gimple-parser.cc (c_parser_parse_gimple_body): Verify the parsed IL and zap the body on error. gcc/ * tree-cfg.h (verify_gimple_in_seq): Add parameter to indicate whether to emit an ICE. Add return value. (verify_gimple_in_cfg): Likewise. * tree-cfg.cc (verify_gimple_in_seq): Likewise. (verify_gimple_in_cfg): Likewise. gcc/testsuite/ * gcc.dg/gimplefe-error-15.c: New testcase.=