From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20126 invoked by alias); 29 Oct 2010 13:03:25 -0000 Received: (qmail 20115 invoked by uid 22791); 29 Oct 2010 13:03:24 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Oct 2010 13:03:21 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46217] [4.6 Regression] store to volatile is removed 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: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: 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 Date: Fri, 29 Oct 2010 13:03:00 -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 X-SW-Source: 2010-10/txt/msg02489.txt.bz2 Message-ID: <20101029130300.CTyk1A7j_5ykFHvjzldkrBQj2_GF8fbY5tziokeE20g@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46217 --- Comment #2 from Richard Guenther 2010-10-29 13:03:07 UTC --- Actually we rewrite it into SSA form where we have no way to convince the operand scanner to preserve the volatileness. I guess whoever uses automatic volatiles deserves to get stack memory.