[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
Re: [cxx-abi-dev] Long bitfields in PODs
- To: cxx-abi-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [cxx-abi-dev] Long bitfields in PODs
- From: Daveed Vandevoorde <daveed@xxxxxxx>
- Date: Wed, 14 May 2003 16:23:39 -0400
On Wednesday, May 14, 2003, at 03:28 PM, Jason Merrill wrote:
[...]
I'd just add a note mentioning that since C doesn't have large
bitfields,
they are handled by the rules elsewhere in the ABI.
Yes, but those rules live in a context of non-POD layout.
I.e., it's hard to specify that one (overlong bit) field
is laid out according to algorithm A while the others
are laid out according to algorithm B, because these
algorithms need to update their state for every field
allocation.
I think for the specification to make sense, the easiest
is Mark's suggestion: If a POD struct contains an overlong
bit field, use the non-POD algorithm to compute its layout.
Daveed
|