[Bug libgomp/93066] libgomp/target.c:525:46: error: expected expression before ')' token

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Dec 28 09:19:00 GMT 2019


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)


More information about the Gcc-bugs mailing list