summaryrefslogtreecommitdiff
path: root/fixincludes/tests/base
diff options
context:
space:
mode:
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-28 17:53:46 +0000
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-28 17:53:46 +0000
commitc939099a5d715db351cf0976a60dfb91e4d172e8 (patch)
tree63e3432b8820645ed8e1d19519b5531f16d41b5b /fixincludes/tests/base
parent840ea8c3163b482ea7c968202d2bca0f11281fce (diff)
downloadgcc-c939099a5d715db351cf0976a60dfb91e4d172e8.tar.gz
2009-08-28 Steve Ellcey <sje@cup.hp.com>
* inclhack.def (hpux_imaginary_i): Remove spaces. * fixincl.x: Regenerate. * tests/base/stdint.h: Update AIX fixes. * tests/base/complex.h: Change HPUX_IMAGINARY_I_CHECK fix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151171 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/tests/base')
-rw-r--r--fixincludes/tests/base/complex.h2
-rw-r--r--fixincludes/tests/base/stdint.h32
2 files changed, 17 insertions, 17 deletions
diff --git a/fixincludes/tests/base/complex.h b/fixincludes/tests/base/complex.h
index d7f2c3120f3..d20310d346d 100644
--- a/fixincludes/tests/base/complex.h
+++ b/fixincludes/tests/base/complex.h
@@ -16,6 +16,6 @@
#if defined( HPUX_IMAGINARY_I_CHECK )
-# define _Complex_I (__extension__ 1.0iF)
+#define _Complex_I (__extension__ 1.0iF)
#endif /* HPUX_IMAGINARY_I_CHECK */
diff --git a/fixincludes/tests/base/stdint.h b/fixincludes/tests/base/stdint.h
index ae7b12e46d3..8be61a9718d 100644
--- a/fixincludes/tests/base/stdint.h
+++ b/fixincludes/tests/base/stdint.h
@@ -10,41 +10,41 @@
#if defined( AIX_STDINT_1_CHECK )
-#define UINT8_MAX (255U)
-#define UINT16_MAX (65535U)
+#define UINT8_MAX (255)
+#define UINT16_MAX (65535)
#endif /* AIX_STDINT_1_CHECK */
#if defined( AIX_STDINT_2_CHECK )
-#define INTPTR_MIN INT64_MIN
-#define INTPTR_MAX INT64_MAX
-#define UINTPTR_MAX UINT64_MAX
+#define INTPTR_MIN (-INTPTR_MAX-1)
+#define INTPTR_MAX 9223372036854775807L
+#define UINTPTR_MAX 18446744073709551615UL
#else
-#define INTPTR_MIN INT32_MIN
-#define INTPTR_MAX INT32_MAX
-#define UINTPTR_MAX UINT32_MAX
+#define INTPTR_MIN (-INTPTR_MAX-1)
+#define INTPTR_MAX 2147483647L
+#define UINTPTR_MAX 4294967295UL
#endif /* AIX_STDINT_2_CHECK */
#if defined( AIX_STDINT_3_CHECK )
-#define PTRDIFF_MIN INT64_MIN
-#define PTRDIFF_MAX INT64_MAX
+#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
+#define PTRDIFF_MAX __PTRDIFF_MAX__
#else
-#define PTRDIFF_MIN INT32_MIN
-#define PTRDIFF_MAX INT32_MAX
+#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
+#define PTRDIFF_MAX __PTRDIFF_MAX__
#endif /* AIX_STDINT_3_CHECK */
#if defined( AIX_STDINT_4_CHECK )
-#define SIZE_MAX UINT64_MAX
+#define SIZE_MAX __SIZE_MAX__
#else
-#define SIZE_MAX UINT32_MAX
+#define SIZE_MAX __SIZE_MAX__
#endif /* AIX_STDINT_4_CHECK */
#if defined( AIX_STDINT_5_CHECK )
-#define UINT8_C(c) __CONCAT__(c,U)
-#define UINT16_C(c) __CONCAT__(c,U)
+#define UINT8_C(c) __UINT8_C(c)
+#define UINT16_C(c) __UINT16_C(c)
#endif /* AIX_STDINT_5_CHECK */