[PATCH] newlib/libc/stdbit: Fix static assertions for 16-bit int
Jan Dubiec
jdx@o2.pl
Sun Jul 5 22:38:39 GMT 2026
On 20.04.2026 17:24, Jonathan Wakely wrote:
> All the USHRT_WIDTH < UINT_WIDTH assertions fail for 16-bit int targets,
> such as msp430-elf. Remove those static assertions and instead fix the
> stdc_xxx_us functions to work correctly when USHRT_WIDTH == UINT_WIDTH.
FYI, I just noticed the issue on H8/300H where by default
sizeof(short)=sizeof(int).
/J.D.
More information about the Newlib
mailing list