From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28999 invoked by alias); 27 Feb 2013 19:42:13 -0000 Received: (qmail 27562 invoked by uid 48); 27 Feb 2013 19:41:44 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56476] ARM volatile writes/str creates superfluous and uncalled for read/ldr with -Os Date: Wed, 27 Feb 2013 19:42:00 -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-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: Keywords Component 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: 2013-02/txt/msg02626.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56476 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Component|target |tree-optimization --- Comment #1 from Andrew Pinski 2013-02-27 19:41:43 UTC --- The tree pass CSElim is doing this for some reason. I think it forgot to check for volatileness.