Index: gcc/gcc/config.in =================================================================== --- gcc.orig/gcc/config.in 2009-08-24 08:11:35.000000000 +0200 +++ gcc/gcc/config.in 2009-09-03 01:23:09.497371000 +0200 @@ -1144,6 +1144,25 @@ #undef HAVE_MALLOC_H #endif +#ifndef USED_FOR_TARGET +#undef HAVE_STDINT_H +#endif + +#ifndef USED_FOR_TARGET +#undef HAVE_UINTPTR_T +#endif + +#ifndef USED_FOR_TARGET +#undef HAVE_INTPTR_T +#endif + +#ifndef USED_FOR_TARGET +#undef uintptr_t +#endif + +#ifndef USED_FOR_TARGET +#undef intptr_t +#endif /* Define to 1 if you have the `mbstowcs' function. */ #ifndef USED_FOR_TARGET Index: gcc/gcc/configure.ac =================================================================== --- gcc.orig/gcc/configure.ac 2009-08-28 21:28:51.000000000 +0200 +++ gcc/gcc/configure.ac 2009-09-03 03:27:44.886371000 +0200 @@ -311,6 +311,8 @@ AC_CHECK_SIZEOF(long) AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)]) AC_CHECK_TYPES([__int64], [AC_CHECK_SIZEOF(__int64)]) +AC_TYPE_UINTPTR_T +AC_TYPE_INTPTR_T # --------------------- # Warnings and checking @@ -933,7 +935,8 @@ AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \ fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \ sys/resource.h sys/param.h sys/times.h sys/stat.h \ - direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h) + direct.h malloc.h stdint.h langinfo.h ldfcn.h \ + locale.h wchar.h) # Check for thread headers. AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=]) Index: gcc/gcc/system.h =================================================================== --- gcc.orig/gcc/system.h 2009-08-27 15:04:09.000000000 +0200 +++ gcc/gcc/system.h 2009-09-03 01:25:05.294371000 +0200 @@ -414,6 +414,10 @@ extern void *realloc (void *, size_t); #endif +#ifdef HAVE_STDINT_H +#include +#endif + /* If the system doesn't provide strsignal, we get it defined in libiberty but no declaration is supplied. */ #if !defined (HAVE_STRSIGNAL) \