This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/46914] std::atomic<int*>::exchange(...) doesn't store correct value.


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]