From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14664 invoked by alias); 6 Dec 2006 17:35:26 -0000 Received: (qmail 14646 invoked by uid 22791); 6 Dec 2006 17:35:25 -0000 X-Spam-Check-By: sourceware.org Received: from belize.chezphil.org (HELO belize.chezphil.org) (80.68.91.122) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Dec 2006 17:35:21 +0000 Received: from localhost ([127.0.0.1] helo=chezphil.org) by belize.chezphil.org with esmtp (Exim 4.50) id 1Gs1Ix-0005ek-Dv for gcc-help@gcc.gnu.org; Wed, 06 Dec 2006 18:15:39 +0000 Received: from localhost ([127.0.0.1]) by belize with smtp (dmsmtpd 0.00001); Wed, 06 Dec 2006 18:15:39 +0000 To: "Paul Brook" Cc: Date: Wed, 06 Dec 2006 17:35:00 -0000 Subject: Re: Packing of structure fields and whole structs Message-ID: <1165426514373@dmwebmail.belize.chezphil.org> In-Reply-To: <200612061711.31757.paul@codesourcery.com> References: <200612061711.31757.paul@codesourcery.com> X-Mailer: Decimail Webmail 3alpha14 MIME-Version: 1.0 Content-Type: text/plain; format="flowed" From: "Phil Endecott" Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-12/txt/msg00119.txt.bz2 Paul Brook wrote: > [..] the ARM ABI you're using specifies that all structures have a > minimum alignment of 4 bytes. > > Making the structure packed overrides that. .. whereas making all of the members of the struct packed doesn't. OK. Is there still a case for a documentation fix? That quote again: Specifying this attribute [packed] for `struct' and `union' types is equivalent to specifying the `packed' attribute on each of the structure or union members.