From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32118 invoked by alias); 4 Mar 2003 18:06:01 -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 32098 invoked by uid 71); 4 Mar 2003 18:06:01 -0000 Date: Tue, 04 Mar 2003 18:06:00 -0000 Message-ID: <20030304180601.32097.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Hagen Last Subject: Re: c/9932: alignment of long long in struct seems to be wrong Reply-To: Hagen Last X-SW-Source: 2003-03/txt/msg00168.txt.bz2 List-Id: The following reply was made to PR c/9932; it has been noted by GNATS. From: Hagen Last To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, hagen@equator.com, gcc-prs@gcc.gnu.org Cc: Subject: Re: c/9932: alignment of long long in struct seems to be wrong Date: 04 Mar 2003 09:39:11 -0800 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9932 I don't know if there is a formal specification for the correct alignment of 64-bit data types on x86 linux. I think that's up to the compiler (I was actually told by one of our compiler guys that I should not assume anything about alignment of data types). But from what I understand structs must be aligned to the largest alignment of its members. So, if the alignment of a 64-bit type is 8 (for a specific compiler) then it must also align a struct that has a member of this data type to (at least) 8. Hagen.