Packing of structure fields and whole structs

Phil Endecott spam_from_gcc_2@chezphil.org
Wed Dec 6 17:35:00 GMT 2006


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.






More information about the Gcc-help mailing list