This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Define libc_max_align_t
- From: Rich Felker <dalias at libc dot org>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: pinskia at gmail dot com, Florian Weimer <fweimer at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 2 Apr 2015 11:18:28 -0400
- Subject: Re: [PATCH] Define libc_max_align_t
- Authentication-results: sourceware.org; auth=none
- References: <551C1A60 dot 4080507 at redhat dot com> <87h9szqzi9 dot fsf at igel dot home> <20150402004025 dot GQ6817 at brightrain dot aerifal dot cx> <666580F4-D816-4260-97EF-C75F785CFB20 at gmail dot com> <20150402023245 dot GS6817 at brightrain dot aerifal dot cx> <mvm619f3rxi dot fsf at hawking dot suse dot de>
On Thu, Apr 02, 2015 at 09:33:45AM +0200, Andreas Schwab wrote:
> Rich Felker <dalias@libc.org> writes:
>
> > gcc behavior is inconsistent and confusing.
>
> gcc just implements the ABI.
No it doesn't. It uses "alignment of X" for two radically different
things. This even resulted in a bug where they chose the wrong one
initially for implementing C11 _Alignof; early gcc versions return the
wrong value for it.
Rich