This is the mail archive of the gcc@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: [RFC] What should be the semantics of a zero-bit bit-field withpragma pack?


On Mon, 7 Nov 2005, Steven Bosscher wrote:

> 2) when we see :0 align to the next unit, which seems to be the
>    behavior of GCC pre-3.4.

If by "unit" you mean "size of type for the :0 field" for
targets with PCC_BITFIELD_TYPE_MATTERS==1, and "byte" for
non-PCC_BITFIELD_TYPE_MATTERS targets, fine with me.  Actually,
only the latter is of interest to me at present.  :-)

(Else that'd imply a change of the ABI for CRIS which is "packed
by default" so :0 causes padding to the next byte.)

brgds, H-P


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