aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests/base
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2009-04-28 15:17:49 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2009-04-28 15:17:49 +0000
commit62e66577b28d76bd2f4e1feb01ca7bad25dde8e8 (patch)
treef4e2713da92204b23f131d111429435387a6ab03 /fixincludes/tests/base
parentaf04e659c91c5698bb5f8e0a379a35906471ec60 (diff)
downloadgcc-62e66577b28d76bd2f4e1feb01ca7bad25dde8e8.zip
gcc-62e66577b28d76bd2f4e1feb01ca7bad25dde8e8.tar.gz
gcc-62e66577b28d76bd2f4e1feb01ca7bad25dde8e8.tar.bz2
inclhack.def (hpux11_uint32_c): Remove.
* inclhack.def (hpux11_uint32_c): Remove. (hpux_long_double): Disable on hpux11.3*. (hpux_long_double_2): New. (hpux_c99_intptr): New. (hpux_c99_inttypes): New. (hpux_c99_inttypes2): New. (hpux_stdint_least): New. (hpux_stdint_fast): New. (hpux_inttype_int_least8_t): New. (hpux_inttype_int8_t): New. * fixincl.x: Regenerate. * tests/base/sys/_inttypes.h: New. * tests/base/inttypes.h: Update. * tests/base/stdlib.h: Update. * tests/base/stdint.h: Update. From-SVN: r146899
Diffstat (limited to 'fixincludes/tests/base')
-rw-r--r--fixincludes/tests/base/inttypes.h11
-rw-r--r--fixincludes/tests/base/stdint.h42
-rw-r--r--fixincludes/tests/base/stdlib.h6
-rw-r--r--fixincludes/tests/base/sys/_inttypes.h21
4 files changed, 76 insertions, 4 deletions
diff --git a/fixincludes/tests/base/inttypes.h b/fixincludes/tests/base/inttypes.h
index 06d7ebd..3f55685 100644
--- a/fixincludes/tests/base/inttypes.h
+++ b/fixincludes/tests/base/inttypes.h
@@ -9,7 +9,10 @@
-#if defined( HPUX11_UINT32_C_CHECK )
-#define CONCAT_U__(__c) __CONCAT__(__c,u)
-#define UINT32_C(__c) __CONCAT__(__c,ul)
-#endif /* HPUX11_UINT32_C_CHECK */
+#if defined( HPUX_C99_INTTYPES_CHECK )
+#define UINT8_C(__c) (__c)
+#define UINT16_C(__c) (__c)
+#define INT32_C(__c) (__c)
+#define UINT32_C(__c) __CONCAT__(__c,u)
+
+#endif /* HPUX_C99_INTTYPES_CHECK */
diff --git a/fixincludes/tests/base/stdint.h b/fixincludes/tests/base/stdint.h
index 30ba3ad..653c5da 100644
--- a/fixincludes/tests/base/stdint.h
+++ b/fixincludes/tests/base/stdint.h
@@ -16,6 +16,48 @@
#endif /* GLIBC_STDINT_CHECK */
+#if defined( HPUX_C99_INTPTR_CHECK )
+#define PTRDIFF_MAX __PTRDIFF_MAX__
+#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
+#define INTPTR_MAX (2147483647l)
+#define INTPTR_MIN (-INTPTR_MAX - 1)
+#define UINTPTR_MAX (4294967295ul)
+#define SIZE_MAX __SIZE_MAX__
+
+#endif /* HPUX_C99_INTPTR_CHECK */
+
+
+#if defined( HPUX_C99_INTTYPES2_CHECK )
+#define INT8_C(__c) (__c)
+#define UINT8_C(c) __UINT8_C(c)
+#define INT16_C(__c) (__c)
+#define UINT16_C(c) __UINT16_C(c)
+
+#endif /* HPUX_C99_INTTYPES2_CHECK */
+
+
+#if defined( HPUX_STDINT_LEAST_CHECK )
+#ifdef __LP64__
+# define UINT_LEAST64_MAX ULONG_MAX
+#else
+# define UINT_LEAST64_MAX ULLONG_MAX
+#endif
+
+
+#endif /* HPUX_STDINT_LEAST_CHECK */
+
+
+#if defined( HPUX_STDINT_FAST_CHECK )
+#ifdef __LP64__
+# define UINT_FAST64_MAX ULONG_MAX
+#else
+# define UINT_FAST64_MAX ULLONG_MAX
+#endif
+
+
+#endif /* HPUX_STDINT_FAST_CHECK */
+
+
#if defined( IRIX_STDINT_C99_CHECK )
#if 0
#error This header file is to be used only for c99 mode compilations
diff --git a/fixincludes/tests/base/stdlib.h b/fixincludes/tests/base/stdlib.h
index e7174e1..d104cc7 100644
--- a/fixincludes/tests/base/stdlib.h
+++ b/fixincludes/tests/base/stdlib.h
@@ -20,6 +20,12 @@ extern long double strtold(const char *, char **);
#endif /* HPUX_LONG_DOUBLE_CHECK */
+#if defined( HPUX_LONG_DOUBLE_2_CHECK )
+# if !defined(__ia64) || !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)
+
+#endif /* HPUX_LONG_DOUBLE_2_CHECK */
+
+
#if defined( INT_ABORT_FREE_AND_EXIT_CHECK )
extern void abort(int);
extern void free(void*);
diff --git a/fixincludes/tests/base/sys/_inttypes.h b/fixincludes/tests/base/sys/_inttypes.h
new file mode 100644
index 0000000..6773ab8
--- /dev/null
+++ b/fixincludes/tests/base/sys/_inttypes.h
@@ -0,0 +1,21 @@
+/* DO NOT EDIT THIS FILE.
+
+ It has been auto-edited by fixincludes from:
+
+ "fixinc/tests/inc/sys/_inttypes.h"
+
+ This had to be done to correct non-standard usages in the
+ original, manufacturer supplied header file. */
+
+
+
+#if defined( HPUX_INTTYPE_INT_LEAST8_T_CHECK )
+typedef signed char int_least8_t;
+
+#endif /* HPUX_INTTYPE_INT_LEAST8_T_CHECK */
+
+
+#if defined( HPUX_INTTYPE_INT8_T_CHECK )
+typedef signed char int8_t;
+
+#endif /* HPUX_INTTYPE_INT8_T_CHECK */