https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106036
Bug ID: 106036
Summary: Missing stdint.h include in libgcc/libgcov.h
Product: gcc
Version: 12.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-profile
Assignee: unassigned at gcc dot gnu.org
Reporter: kacper.slominski72 at gmail dot com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
The libgcc/libgcov.h header (and users of it) do not include stdint.h before
using int64_t and uint64_t (via typedefs in gcc/gcov-io.h).
Looking a bit deeper, gcc/tsystem.h includes a bunch of libc headers but omits
stdint.h, which, on glibc, gets inadvertently brought in by stdlib.h and
sys/types.h, but POSIX does not specify that it needs to.