From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E3D6A3858C62; Wed, 11 Jan 2023 19:47:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3D6A3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673466432; bh=wiZ4IFnI2y5Z9o9U45wyDj6FGgaZDYhPbEKd2rnj2zA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TZZAMgaQkZWi01LYcW2v2P8Bj0468jtoBiRC3oPt5s9oTjNPFUmfW8xAf86xEgtFP YaoKbeHtrrH5tIapnZPpvUjtpebSPvbHhKyB5pAJkCB08ispouV5tzIuZXIjj219VI VFWGyFPIv/R/2WdBvRxBGx9m1z8PjTd8bRTBQHLE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108199] Bitfields, unions and SRA and storage_order_attribute Date: Wed, 11 Jan 2023 19:47:12 +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: 12.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou 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=3D108199 --- Comment #19 from CVS Commits --- The releases/gcc-11 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:01e80c4c630a5a6286a521b047d0ef80631c892c commit r11-10463-g01e80c4c630a5a6286a521b047d0ef80631c892c Author: Eric Botcazou Date: Wed Jan 11 15:58:47 2023 +0100 Fix problematic interaction between bitfields, unions, SSO and SRA The handling of bitfields by the SRA pass is peculiar and this must be taken into account to support the scalar_storage_order attribute. gcc/ PR tree-optimization/108199 * tree-sra.c (sra_modify_expr): Deal with reverse storage order for bit-field references. gcc/testsuite/ * gcc.dg/sso-17.c: New test.=