Re: [PATCH] newlib/libc/stdbit: Fix static assertions for 16-bit int

Jan Dubiec <[email protected]> Mon, 6 Jul 2026 00:38:39 +0200
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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.