diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2019-12-30 20:33:17 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2019-12-30 20:33:17 +0000 |
commit | 5ee5eddb26e6007aaa2fadd19a55d6bc03cb2baa (patch) | |
tree | 2d7f977776afd73b2c335b0627346390b76b0e3c /fixincludes/tests/base | |
parent | 4559be2358020714ec7521c80589992716d23035 (diff) | |
download | gcc-5ee5eddb26e6007aaa2fadd19a55d6bc03cb2baa.tar.gz |
re PR libgomp/93066 (libgomp/target.c:525:46: error: expected expression before ')' token)
PR libgomp/93066
* inclhack.def (hpux_c99_inttypes3): Fix defines for INTPTR_MAX
and UINTPTR_MAX, and missing define for SIZE_MAX.
* fixincl.x: Regenerate.
* tests/base/inttypes.h: Update for above fix.
From-SVN: r279773
Diffstat (limited to 'fixincludes/tests/base')
-rw-r--r-- | fixincludes/tests/base/inttypes.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fixincludes/tests/base/inttypes.h b/fixincludes/tests/base/inttypes.h index 3f556856a41..e2216832666 100644 --- a/fixincludes/tests/base/inttypes.h +++ b/fixincludes/tests/base/inttypes.h @@ -16,3 +16,20 @@ #define UINT32_C(__c) __CONCAT__(__c,u) #endif /* HPUX_C99_INTTYPES_CHECK */ + + +#if defined( HPUX_C99_INTTYPES3_CHECK ) +#undef SIZE_MAX +#define SIZE_MAX __SIZE_MAX__ +#ifdef __INTPTR_MAX__ +# undef INTPTR_MAX +# define INTPTR_MAX __INTPTR_MAX__ +# undef INTPTR_MIN +# define INTPTR_MIN (-INTPTR_MAX - 1) +#endif +#ifdef __UINTPTR_MAX__ +# undef UINTPTR_MAX +# define UINTPTR_MAX __UINTPTR_MAX__ +#endif + +#endif /* HPUX_C99_INTTYPES3_CHECK */ |