re PR testsuite/24107 (gcc.dg/20050922-1.c relies in stdint.h)
authorPaul Brook <paul@codesourcery.com>
Mon, 24 Oct 2005 12:55:37 +0000 (12:55 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Mon, 24 Oct 2005 12:55:37 +0000 (12:55 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20050922-1.c

index 7e0e29a54b744861b7cf93f2aaaac2a0186cc213..3f575da056d3abbb17fe15e9f1d82bdc9f650ed3 100644 (file)
@@ -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
index cecb98a1f546d73ffba90d6b5bca51439debd9e1..ed5a3c63e9d2dbfb84d8abe0f9f285b8eb1febdd 100644 (file)
@@ -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)