https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104605
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- Created attachment 53657 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53657&action=edit Use predefined macros to define freestanding <cstdint> I have this patch locally, but I don't think the <stdint.h> changes are actually necessary. Using -ffreestanding should ensure they are present already.