From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27275 invoked by alias); 15 Jan 2013 20:02:08 -0000 Received: (qmail 26815 invoked by uid 48); 15 Jan 2013 20:01:43 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55981] std::atomic store is split in two smaller stores Date: Tue, 15 Jan 2013 20:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 4.7.3 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: 2013-01/txt/msg01426.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55981 --- Comment #10 from Uros Bizjak 2013-01-15 20:01:41 UTC --- (In reply to comment #9) > (In reply to comment #4) > > (In reply to comment #2) > > > Btw, the same happens if atomic is replaced with "volatile unsigned long y" - > > > which does not violate the standard, but may be considered undesirable by some. > > > I don't have a strong opinion about this. > > > > This really does need to be fixed in the "volatile unsigned long y" case, or > > device drivers storing constants to device registers will break. So please fix > > this for volatiles as well as atomics. > > Please open a new PR for this. It looks to me that volatiles should not be allowed as offsetable operands, but let's discuss this in a separate PR.