c/9932: alignment of long long in struct seems to be wrong

rth@gcc.gnu.org rth@gcc.gnu.org
Sun Mar 16 09:31:00 GMT 2003


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



More information about the Gcc-bugs mailing list