--- gcc-4.7-4.7.2/debian/patches/libgcc2-128bit-remove-limits-header.diff 1970-01-01 01:00:00.000000000 +0100 +++ arm64-cross-toolchain-base-1.92/gcc/debian/patches/libgcc2-128bit-remove-limits-header.diff 2012-12-18 16:31:55.000000000 +0000 @@ -0,0 +1,61 @@ +Index: gcc/src/libgcc/libgcc2.c +=================================================================== +--- gcc.orig/src/libgcc/libgcc2.c 2011-11-02 15:26:35.000000000 +0000 ++++ gcc/src/libgcc/libgcc2.c 2012-12-18 16:26:50.000000000 +0000 +@@ -1676,18 +1676,6 @@ + #endif + + #if defined(L_fixunsxfsi) && LIBGCC2_HAS_XF_MODE +-/* Reenable the normal types, in case limits.h needs them. */ +-#undef char +-#undef short +-#undef int +-#undef long +-#undef unsigned +-#undef float +-#undef double +-#undef MIN +-#undef MAX +-#include +- + UWtype + __fixunsxfSI (XFtype a) + { +@@ -1698,18 +1686,6 @@ + #endif + + #if defined(L_fixunsdfsi) && LIBGCC2_HAS_DF_MODE +-/* Reenable the normal types, in case limits.h needs them. */ +-#undef char +-#undef short +-#undef int +-#undef long +-#undef unsigned +-#undef float +-#undef double +-#undef MIN +-#undef MAX +-#include +- + UWtype + __fixunsdfSI (DFtype a) + { +@@ -1720,18 +1696,6 @@ + #endif + + #if defined(L_fixunssfsi) && LIBGCC2_HAS_SF_MODE +-/* Reenable the normal types, in case limits.h needs them. */ +-#undef char +-#undef short +-#undef int +-#undef long +-#undef unsigned +-#undef float +-#undef double +-#undef MIN +-#undef MAX +-#include +- + UWtype + __fixunssfSI (SFtype a) + { --- gcc-4.7-4.7.2/debian/rules.patch 2012-12-12 10:30:37.000000000 +0000 +++ arm64-cross-toolchain-base-1.92/gcc/debian/rules.patch 2012-12-18 17:39:14.000000000 +0000 @@ -86,6 +85,9 @@ pr54411 \ hurd-pthread \ pr54974 \ + libgo-testsuite \ + cross-build-fixes \ + libgcc2-128bit-remove-limits-header \ # $(if $(filter yes, $(DEB_CROSS)),,gcc-print-file-name) \ # libstdc++-nothumb-check \