From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A304B384CB9D; Fri, 22 Dec 2023 11:30:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A304B384CB9D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703244629; bh=vwlr+HZ2JjQvW5K1Hb5PDA9PkE8ZTHvyV3B3lwTMm9I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=X0XgvJRoWuLAC0iIwGVFW/BryFgJvClgP+sTxhcXq8aCMwIrFAfHQAKKvv2ZYsSwi 5pVO4EzTuJ1ZQGI1H87rB6HM36DlNV003Xd03WC0lQV6ZHgU87tdaUyxhBA8q7lQUC 8bFaC9CKfUORSz9suBld9o2ZibgMttAPDc2IA8jo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113102] during GIMPLE pass: bitintlower ICE: SIGSEGV with _BitInt() at -O1 or -O2 Date: Fri, 22 Dec 2023 11:30:29 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub 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=3D113102 --- Comment #5 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:f5198f0264e773d3b5d55f09a579313b0b231527 commit r14-6804-gf5198f0264e773d3b5d55f09a579313b0b231527 Author: Jakub Jelinek Date: Fri Dec 22 12:28:06 2023 +0100 lower-bitint: Handle unreleased SSA_NAMEs from earlier passes gracefully [PR113102] On the following testcase earlier passes leave around an unreleased SSA_NAME - non-GIMPLE_NOP SSA_NAME_DEF_STMT which isn't in any bb. The following patch makes bitint lowering resistent against those, the first hunk is where we'd for certain kinds of stmts try to ammend them and the latter is where we'd otherwise try to remove them, neither of which works. The other loops over all SSA_NAMEs either already also check gimple_bb (SSA_NAME_DEF_STMT (s)) or it doesn't matter that much if we process it or not (worst case it means e.g. the pass wouldn't return early even when it otherwise could). 2023-12-22 Jakub Jelinek PR tree-optimization/113102 * gimple-lower-bitint.cc (gimple_lower_bitint): Handle unreleas= ed large/huge _BitInt SSA_NAMEs. * gcc.dg/bitint-59.c: New test.=