[Bug libstdc++/65147] alignment of std::atomic object is not correct
alexey.lapshin at oracle dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 23 18:07:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65147
--- Comment #3 from Alexey Lapshin <alexey.lapshin at oracle dot com> ---
(In reply to Jason Merrill from comment #2)
> This does seem like a bug.
What is a proper behavior for G++ in this case ?
should it always align std::atomic object of size 8 at 8 bytes ?
Or should G++ just never inline implementation for atomic routine ?
(see bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65149 when implementation
of atomic routine was inlined for incorrectly aligned atomic object, which
leads to BusError)
More information about the Gcc-bugs
mailing list