This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -malign-double vs __alignof__(double)
- From: Richard Henderson <rth at redhat dot com>
- To: Dale Johannesen <dalej at apple dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Thu, 21 Jul 2005 12:23:12 -0700
- Subject: Re: -malign-double vs __alignof__(double)
- References: <1adc9bf9f5ec4635bc12d8752d3d3f73@apple.com>
On Wed, Jul 20, 2005 at 06:26:03PM -0700, Dale Johannesen wrote:
> alignof doc has so many qualifications I'm not sure exactly what it's
> supposed to do.
__alignof__(double) == 8 on x86, regardless of command line
switches, because 8 is the *preferred* alignment of the type.
That's the weasel word in the docs. The implementation is ok.
r~