From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F314B3857728; Tue, 17 Oct 2023 06:26:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F314B3857728 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697523994; bh=mhiWZ03vxUZGkCLvBDok0um3wCIknqJEQQuDbti9h0E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GTvR/wNaQ999oy7kU/pQJNxNu9caTN0qXmOIsC5OaWu5X/EnOIn0qcQZVmXhm9ysN 4Y2N6ms/Us9z2B5iF6YINl6a3st6uZ+ScE+z5DJ/Lr/lIBOpDE9IRrihrZhia08HlC tDwzLOjZrqcZhFPGNjlM+ed1E1QEA0ISK6+SyDDc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111807] [14 Regression] ice in verify_sra_access_forest with -O1 and bitfields in some cases Date: Tue, 17 Oct 2023 06:26:34 +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: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D111807 --- Comment #8 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:3aaf704bca3e01c72d9fe6de01ae5416dba6b5db commit r14-4677-g3aaf704bca3e01c72d9fe6de01ae5416dba6b5db Author: Richard Biener Date: Mon Oct 16 12:54:28 2023 +0200 tree-optimization/111807 - ICE in verify_sra_access_forest The following addresses build_reconstructed_reference failing to build references with a different offset than the models and thus the caller conditional being off. This manifests when attempting to build a ref with offset 160 from the model BIT_FIELD_REF onto the same base l_4827 but the models offset being 288. This cannot work for any kind of ref I can think of, not just with BIT_FIELD_REFs. PR tree-optimization/111807 * tree-sra.cc (build_ref_for_model): Only call build_reconstructed_reference when the offsets are the same. * gcc.dg/torture/pr111807.c: New testcase.=