aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2019-12-30 20:33:17 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2019-12-30 20:33:17 +0000
commit5ee5eddb26e6007aaa2fadd19a55d6bc03cb2baa (patch)
tree2d7f977776afd73b2c335b0627346390b76b0e3c /fixincludes/tests
parent4559be2358020714ec7521c80589992716d23035 (diff)
downloadgcc-5ee5eddb26e6007aaa2fadd19a55d6bc03cb2baa.zip
gcc-5ee5eddb26e6007aaa2fadd19a55d6bc03cb2baa.tar.gz
gcc-5ee5eddb26e6007aaa2fadd19a55d6bc03cb2baa.tar.bz2
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')
-rw-r--r--fixincludes/tests/base/inttypes.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/fixincludes/tests/base/inttypes.h b/fixincludes/tests/base/inttypes.h
index 3f55685..e221683 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 */