[Bug libstdc++/46914] std::atomic<int*>::exchange(...) doesn't store correct value.
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 28 10:11:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46914
--- Comment #11 from Paolo Carlini <paolo.carlini at oracle dot com> 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).
More information about the Gcc-bugs
mailing list