* -malign-double vs __alignof__(double)
@ 2005-07-21 1:26 Dale Johannesen
2005-07-21 19:29 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Dale Johannesen @ 2005-07-21 1:26 UTC (permalink / raw)
To: GCC Development; +Cc: Dale Johannesen
While fighting with the x86-darwin alignment rules, I noticed that
-malign-double
doesn't seem to affect __alignof__(double). This seems like a bug, but
the
alignof doc has so many qualifications I'm not sure exactly what it's
supposed to
do. Is this broken? Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: -malign-double vs __alignof__(double)
2005-07-21 1:26 -malign-double vs __alignof__(double) Dale Johannesen
@ 2005-07-21 19:29 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2005-07-21 19:29 UTC (permalink / raw)
To: Dale Johannesen; +Cc: GCC Development
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~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-21 19:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-21 1:26 -malign-double vs __alignof__(double) Dale Johannesen
2005-07-21 19:29 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).