This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -malign-double vs __alignof__(double)


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]