This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [libstdc++/65033] Give alignment info to libatomic
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Cc: Richard Henderson <rth at redhat dot com>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 Apr 2015 10:35:08 +0100
- Subject: Re: [libstdc++/65033] Give alignment info to libatomic
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot BSF dot 2 dot 02 dot 1504022240580 dot 40679 at arjuna dot pair dot com> <alpine dot BSF dot 2 dot 02 dot 1504030518160 dot 69548 at arjuna dot pair dot com> <20150403141333 dot GY9755 at redhat dot com> <alpine dot BSF dot 2 dot 02 dot 1504052052110 dot 29977 at arjuna dot pair dot com> <20150407094458 dot GA9755 at redhat dot com> <alpine dot BSF dot 2 dot 02 dot 1504070641560 dot 16304 at arjuna dot pair dot com> <20150407131252 dot GB9755 at redhat dot com> <alpine dot BSF dot 2 dot 02 dot 1504070922410 dot 45243 at arjuna dot pair dot com> <20150407150617 dot GH9755 at redhat dot com> <alpine dot BSF dot 2 dot 02 dot 1504072311520 dot 89823 at arjuna dot pair dot com>
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.