From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26632 invoked by alias); 16 Mar 2003 08:31:47 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 26577 invoked by uid 48); 16 Mar 2003 08:31:46 -0000 Date: Sun, 16 Mar 2003 08:31:00 -0000 Message-ID: <20030316083146.26572.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hagen@equator.com, nobody@gcc.gnu.org From: rth@gcc.gnu.org Reply-To: rth@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hagen@equator.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c/9932: alignment of long long in struct seems to be wrong X-SW-Source: 2003-03/txt/msg01049.txt.bz2 List-Id: 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