[PATCH] ctype: Fix bitfield types on 16-bit targets
Hans-Bernhard Bröker
HBBroeker@t-online.de
Sun Jul 22 06:47:00 GMT 2018
Am 20.07.2018 um 21:11 schrieb Sebastian Huber:
> ----- Am 20. Jul 2018 um 19:37 schrieb Hans-Bernhard Bröker HBBroeker@t-online.de:
>> I.e. compilers are not required to allow uint32_least_t in this place.
> The previous code used short for a bit-field, so this patch makes nothing worse in this respect
That's not quite as certain as you make it sound. Whether a compiler
allows "short" for bitfields is entirely unrelated to it allowing
"uint32_least_t" for them. All four combinations of outcomes are
possible (though not equally probable).
> Do you know a C99+ compiler which has a problem with such a bit-field?
No. But neither do I claim my knowledge of C compilers to be complete.
More information about the Newlib
mailing list