This is the mail archive of the
mailing list for the GCC project.
Re: structure members of packed structures
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, Mark Mitchell <mark at codesourcery dot com>, <dalej at apple dot com>
- Date: Tue, 15 Jul 2003 10:24:31 -0400 (EDT)
- Subject: Re: structure members of packed structures
On Tue, 15 Jul 2003, Nathan Sidwell wrote:
> In C++, what about non-pods? Here is the problematic case,
For all *I* care, you can completely outlaw attribute-packed on
non-pods. (I just *guess* that the same goes for other users.)
It's mostly a C thingy anyway: map some structure on a specific
memory layout, leaving endianness and bitfields nonportable.
And maybe an MS thing as well -- which may indirectly answer
your question about where you want to look for what to do for