https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066
Bug ID: 93066 Summary: libgomp/target.c:525:46: error: expected expression before ')' token Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Host: hppa64-hp-hpux11.11 Target: hppa64-hp-hpux11.11 Build: hppa64-hp-hpux11.11 The following build error occurs: /bin/sh ./libtool --tag=CC --mode=compile /test/gnu/gcc/objdir/./gcc/xgcc -B/ test/gnu/gcc/objdir/./gcc/ -B/opt/gnu64/gcc/gcc-10/hppa64-hp-hpux11.11/bin/ -B/o pt/gnu64/gcc/gcc-10/hppa64-hp-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-10/hppa 64-hp-hpux11.11/include -isystem /opt/gnu64/gcc/gcc-10/hppa64-hp-hpux11.11/sys-i nclude -fno-checking -DHAVE_CONFIG_H -I. -I../../../gcc/libgomp -I../../../gc c/libgomp/config/hpux -I../../../gcc/libgomp/config/posix -I../../../gcc/libgomp -I../../../gcc/libgomp/../include -Wall -Werror -Wc,-pthread -g -O2 -MT targe t.lo -MD -MP -MF .deps/target.Tpo -c -o target.lo ../../../gcc/libgomp/target.c libtool: compile: /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu64/gcc/gcc-10/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-10/hppa64 -hp-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-10/hppa64-hp-hpux11.11/include -i system /opt/gnu64/gcc/gcc-10/hppa64-hp-hpux11.11/sys-include -fno-checking -DHAV E_CONFIG_H -I. -I../../../gcc/libgomp -I../../../gcc/libgomp/config/hpux -I../.. /../gcc/libgomp/config/posix -I../../../gcc/libgomp -I../../../gcc/libgomp/../in clude -Wall -pthread -Werror -g -O2 -MT target.lo -MD -MP -MF .deps/target.Tpo - c ../../../gcc/libgomp/target.c -DPIC -o .libs/target.o ../../../gcc/libgomp/target.c: In function 'gomp_attach_pointer': ../../../gcc/libgomp/target.c:525:46: error: expected expression before ')' toke n 525 | if (n->aux->attach_count[idx] < UINTPTR_MAX) | ^ On HP-UX, we have in inttypes.h, /* The following 2 macros are provided for testing whether the types ** intptr_t and uintptr_t (integers large enough to hold a void *) are ** defined in this header. They are needed in case the architecture can't ** represent a pointer in any standard integral type. */ #define INTPTR_MAX #define UINTPTR_MAX UINTPTR_MAX is defined in stdint.h which doesn't seem to be included.