From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A765A3861021; Tue, 14 Jul 2020 14:03:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A765A3861021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594735389; bh=Ctw/WDTgZ3FA3tCSKitB1uw5amKFZbTfBud+zH7Ruo8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rF7e80y5v9Z1iGl6+7mHJrXo70oaU7x0M2ma5nvn+9iV5r0FxMvFfvY95PGKEZmL6 wuvd4RxCNdsBrwsGVHpXo7Fgm7SsyFsyRNCERaYq9q/NDidj9TeugMbR8jQDwVb1lu Jfpt4Hf6+RbcxoCL0ZOd3BpiQnm7yN0qrkmdvOfI= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/96194] [10/11 Regression] ICE in assign_temp, at function.c:984 during RTL pass: expand Date: Tue, 14 Jul 2020 14:03:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 10.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 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 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: Tue, 14 Jul 2020 14:03:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96194 --- Comment #7 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:b1d389d60d1929c7528ef984925ea010e3bf2c1a commit r11-2086-gb1d389d60d1929c7528ef984925ea010e3bf2c1a Author: Jakub Jelinek Date: Tue Jul 14 16:01:11 2020 +0200 expr: Unbreak build of mesa [PR96194] > > The store to the whole of each volatile object was picked apart > > like there had been an individual assignment to each of the > > fields. Reads were added as part of that; see PR for details. > > The reads from volatile memory were a clear bug; individual > > stores questionable. A separate patch clarifies the docs. This breaks building of mesa on both the trunk and 10 branch. The problem is that the middle-end may never create temporaries of non-= POD (TREE_ADDRESSABLE) types, those can be only created when the language s= ays so and thus only the FE is allowed to create those. This patch just reverts the behavior to what we used to do before for t= he stores to volatile non-PODs. Perhaps we want to do something else, but definitely we can't create temporaries of the non-POD type. It is up to discussions on what should happen in those cases. 2020-07-14 Jakub Jelinek PR middle-end/96194 * expr.c (expand_constructor): Don't create temporary for store= to volatile MEM if exp has an addressable type. * g++.dg/opt/pr96194.C: New test.=