[PATCH 1/2] libstdc++: Replace padding bits with a bit-field in __format::_Spec
Hans-Peter Nilsson
hp@axis.com
Thu Feb 1 19:50:40 GMT 2024
> From: Jonathan Wakely <jwakely@redhat.com>
> Date: Thu, 1 Feb 2024 19:24:49 +0000
> I think I'd prefer to keep the reserved bits together, but a simpler
> way to avoid 'unsigned long' making a difference for
> PCC_BITFIELD_TYPE_MATTERS targets would be to use no more than 16 bits
> but do:
>
> unsigned _M_reserved : 1;
> unsigned _M_reserved2 : 16;
>
Hah! Genious! :-)
brgds, H-P
More information about the Libstdc++
mailing list