This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Packing of structure fields and whole structs
- From: "Phil Endecott" <spam_from_gcc_2 at chezphil dot org>
- To: "Paul Brook" <paul at codesourcery dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 06 Dec 2006 17:35:14 +0000
- Subject: Re: Packing of structure fields and whole structs
- References: <200612061711.31757.paul@codesourcery.com>
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.