[cxx-abi-dev] Long bitfields in PODs
Daveed Vandevoorde
daveed at edg.com
Wed May 14 20:23:39 UTC 2003
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
More information about the cxx-abi-dev
mailing list