Users of tsystem.h expect stdint.h to be included (for example, gcc/gcov-io.h included by libgcc/libgcov.h), but it is not included, and it is not provided by any other header included here according to POSIX.
gcc/ChangeLog: * tsystem.h: Add missing stdint.h include. --- Proposed fix for bug report 106036. Found when compiling gcc with mlibc (https://github.com/managarm/mlibc) as the C library. Apologies for any mistakes with the patch. gcc/tsystem.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/tsystem.h b/gcc/tsystem.h index dfaf9e86a..5a8551cc2 100644 --- a/gcc/tsystem.h +++ b/gcc/tsystem.h @@ -41,6 +41,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define _GNU_SOURCE 1 /* GCC supplies these headers. */ +#include <stdint.h> #include <stddef.h> #include <float.h> -- 2.36.1