https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to dave.anglin from comment #1)
> Including stdint.h after inttypes.h would avoid the problem

That would be quite difficult, as stdint.h is included by libgomp.h that needs
to be included first.
An easier workaround might be not to use the UINTPTR_MAX macro at all, I think
we can rely on uintptr_t being unsigned integral type and so instead of
  if (n->aux->attach_count[idx] < UINTPTR_MAX)
we could use
  if (n->aux->attach_count[idx] + 1 != 0)

Reply via email to