[libstdc++/65033] Give alignment info to libatomic
Jonathan Wakely
jwakely@redhat.com
Wed Apr 8 09:35:00 GMT 2015
On 07/04/15 23:58 -0400, Hans-Peter Nilsson wrote:
>I'd expect
>alignof(ai): 4 .is_lock_free(): 1
>
>No... wait, that's because atomic_base.h doesn't have the
>natural-alignment fix, so it's still broken for
>less-than-natural-alignment targets. But will be fixed?
Yes, with my uncommitted patch to add the alignas specifier to
__atomic_base<_ITp> I get your expected output.
More information about the Libstdc++
mailing list