From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20266 invoked by alias); 19 Nov 2012 18:48:20 -0000 Received: (qmail 18188 invoked by uid 48); 19 Nov 2012 18:47:41 -0000 From: "colanderman at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/55360] [TileGX] Passing structure by value on stack needlessly writes to and reads from memory Date: Mon, 19 Nov 2012 18:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: colanderman at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg01803.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55360 --- Comment #2 from Chris King 2012-11-19 18:47:39 UTC --- Possibly, though I doubt it. PR 28831 has more to do with eliding copies of the struct in its entirety; the problem I'm having centers around accessing individual elements. If PR 28831 were the cause, I would expect both my test cases (with and without bit-fields) to behave identically, however they do not. It's possible that fixing PR 28831 may hide this bug in my particular use case (by avoiding the stack allocation in the first place), but I believe the difference in handling of normal fields vs. bit fields to be a distinct bug.