This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Packing of structure fields and whole structs


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.






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]