aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2005-10-24 12:55:37 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2005-10-24 12:55:37 +0000
commitaca2b8da2026c46d5ed9447823111a488d364135 (patch)
tree24f8bf8ba045a7e82713a13f9dfc25a3b780732b
parent4c93c95ac5086b4bb0562e87dcfc338bd4b2225b (diff)
downloadgcc-aca2b8da2026c46d5ed9447823111a488d364135.zip
gcc-aca2b8da2026c46d5ed9447823111a488d364135.tar.gz
gcc-aca2b8da2026c46d5ed9447823111a488d364135.tar.bz2
re PR testsuite/24107 (gcc.dg/20050922-1.c relies in stdint.h)
2005-10-24 Paul Brook <paul@codesourcery.com> PR 24107 * gcc.dg/20050922-1.c: Provide definition of uint32_t without using stdint.h. From-SVN: r105847
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/20050922-1.c11
2 files changed, 14 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7e0e29a..3f575da 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-24 Paul Brook <paul@codesourcery.com>
+
+ PR 24107
+ * gcc.dg/20050922-1.c: Provide definition of uint32_t without using
+ stdint.h.
+
2005-10-23 Jerry DeLisle <jvdelisle@verizon.net>
PR libgfortran/24489
diff --git a/gcc/testsuite/gcc.dg/20050922-1.c b/gcc/testsuite/gcc.dg/20050922-1.c
index cecb98a..ed5a3c6 100644
--- a/gcc/testsuite/gcc.dg/20050922-1.c
+++ b/gcc/testsuite/gcc.dg/20050922-1.c
@@ -3,11 +3,16 @@
/* { dg-do run } */
/* { dg-options "-O1 -std=c99" } */
-/* { dg-skip-if "" { *-*-solaris2.5.1 *-*-solaris2.[5-9] } "*" "" } */
-#include <stdint.h>
+#include <stdlib.h>
-extern void abort (void);
+#if __INT_MAX__ == 2147483647
+typedef unsigned int uint32_t;
+#elif __LONG_MAX__ == 2147483647
+typedef unsigned long uint32_t;
+#else
+#error unable to find 32-bit integer type
+#endif
uint32_t
f (uint32_t *S, int j)