public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/106036] New: Missing stdint.h include in libgcc/libgcov.h
@ 2022-06-20 21:45 kacper.slominski72 at gmail dot com
2022-06-21 7:18 ` [Bug gcov-profile/106036] " marxin at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: kacper.slominski72 at gmail dot com @ 2022-06-20 21:45 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gcov-profile/106036] Missing stdint.h include in libgcc/libgcov.h
2022-06-20 21:45 [Bug gcov-profile/106036] New: Missing stdint.h include in libgcc/libgcov.h kacper.slominski72 at gmail dot com
@ 2022-06-21 7:18 ` marxin at gcc dot gnu.org
2022-06-21 14:31 ` kacper.slominski72 at gmail dot com
2022-06-27 9:08 ` marxin at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-06-21 7:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106036
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2022-06-21
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Well, where exactly do you see an error? In the building of libgcc?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gcov-profile/106036] Missing stdint.h include in libgcc/libgcov.h
2022-06-20 21:45 [Bug gcov-profile/106036] New: Missing stdint.h include in libgcc/libgcov.h kacper.slominski72 at gmail dot com
2022-06-21 7:18 ` [Bug gcov-profile/106036] " marxin at gcc dot gnu.org
@ 2022-06-21 14:31 ` kacper.slominski72 at gmail dot com
2022-06-27 9:08 ` marxin at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: kacper.slominski72 at gmail dot com @ 2022-06-21 14:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106036
--- Comment #2 from Kacper Słomiński <kacper.slominski72 at gmail dot com> ---
Okay, this seems to have been a false alarm, sorry for that! Our C library was
missing the typedef for intptr_t in unistd.h, which POSIX does specify. After
adding that, libgcc compiled without problems. It appears that the typedefs in
gcc/gcov-io.h are either not compiled in at all, or are only compiled in when
stdint.h has been included before (I haven't looked into which of the two
happens exactly).
Feel free to close this as RESOLVED INVALID and disregard the patch I sent to
gcc-patches, and again, sorry for the false alarm.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gcov-profile/106036] Missing stdint.h include in libgcc/libgcov.h
2022-06-20 21:45 [Bug gcov-profile/106036] New: Missing stdint.h include in libgcc/libgcov.h kacper.slominski72 at gmail dot com
2022-06-21 7:18 ` [Bug gcov-profile/106036] " marxin at gcc dot gnu.org
2022-06-21 14:31 ` kacper.slominski72 at gmail dot com
@ 2022-06-27 9:08 ` marxin at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-06-27 9:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106036
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Thanks for clarification, closing as invalid.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-27 9:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 21:45 [Bug gcov-profile/106036] New: Missing stdint.h include in libgcc/libgcov.h kacper.slominski72 at gmail dot com
2022-06-21 7:18 ` [Bug gcov-profile/106036] " marxin at gcc dot gnu.org
2022-06-21 14:31 ` kacper.slominski72 at gmail dot com
2022-06-27 9:08 ` marxin at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).