From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85755 invoked by alias); 4 Mar 2015 20:20:11 -0000 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 Received: (qmail 85637 invoked by uid 48); 4 Mar 2015 20:20:08 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/65067] regression on accessing volatile bit field Date: Wed, 04 Mar 2015 20:20: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-Version: 5.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: major X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00526.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65067 --- Comment #8 from Bernd Edlinger --- Created attachment 34955 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34955&action=edit Proposed Fix Well, I noticed that the first version of this patch caused a small but measurable decrease of code quality on x86_64, so I moved the patch to the if (strict_volatile_bitfield_p block, and used some code transformations to simplify the resulting code a bit. I will post this new version for review, after a full boot-strap and successful regression-test on my ARM target.