This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/9932: alignment of long long in struct seems to be wrong
- From: rth at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, hagen at equator dot com, nobody at gcc dot gnu dot org
- Date: 16 Mar 2003 08:31:46 -0000
- Subject: Re: c/9932: alignment of long long in struct seems to be wrong
- Reply-to: rth at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, hagen at equator dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: alignment of long long in struct seems to be wrong
State-Changed-From-To: feedback->closed
State-Changed-By: rth
State-Changed-When: Sun Mar 16 08:31:46 2003
State-Changed-Why:
Not a bug. The x86 svr4 abi specifies that the maximum alignment
of data in a structure is 4. The *preferred* alignment is
8, so that's what __alignof returns.
There is a modification of this rule for MMX and SSE data
types, in that they really require 8 and 16 byte alignment
respectively; in this change we follow the Intel compiler.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9932