|
|
@@ -97,3 +97,15 @@ Index: libcpp/internal.h
|
|
|
#define HAVE_ICONV 0
|
|
|
typedef int iconv_t; /* dummy */
|
|
|
#endif
|
|
|
+Index: gcc/config/i386/driver-i386.c
|
|
|
+--- gcc/config/i386/driver-i386.c.orig 2006-12-29 07:09:06 +0100
|
|
|
++++ gcc/config/i386/driver-i386.c 2007-07-10 09:16:56 +0200
|
|
|
+@@ -26,7 +26,7 @@
|
|
|
+
|
|
|
+ const char *host_detect_local_cpu (int argc, const char **argv);
|
|
|
+
|
|
|
+-#ifdef GCC_VERSION
|
|
|
++#if defined(GCC_VERSION) && GCC_VERSION > 0
|
|
|
+ #define cpuid(num,a,b,c,d) \
|
|
|
+ asm volatile ("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1" \
|
|
|
+ : "=a" (a), "=r" (b), "=c" (c), "=d" (d) \
|