From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13537 invoked by alias); 28 Jan 2011 09:44:06 -0000 Received: (qmail 13523 invoked by uid 22791); 28 Jan 2011 09:44:05 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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, 28 Jan 2011 09:44:01 +0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/46914] std::atomic::exchange(...) doesn't store correct value. X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle 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 Date: Fri, 28 Jan 2011 10:11: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: 2011-01/txt/msg03084.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46914 --- Comment #11 from Paolo Carlini 2011-01-28 09:43:44 UTC --- Ok, with --with-arch-32=i486 in the configure options and -m32 on the command line the problem can be reproduced. Frankly, I don't understand what is going on: in that case, by default, everything should remain consistent and the _GLIBCXX_ATOMIC_BUILTINS_* used when building atomic.cc should be still the correct ones for user code too (if some different -march were used on the command line, then I could see possible troubles, again, because the atomic headers don't use macros sensitive to the actual command line options).