[llvm-commits] [llvm-gcc-4.2] r60531 - /llvm-gcc-4.2/trunk/gcc/config/i386/driver-i386.c

Devang Patel dpatel at apple.com
Wed Dec 3 21:19:42 PST 2008


Author: dpatel
Date: Wed Dec  3 23:19:42 2008
New Revision: 60531

URL: http://llvm.org/viewvc/llvm-project?rev=60531&view=rev
Log:
Fix universal bootstrap on a ppc host.

Modified:
    llvm-gcc-4.2/trunk/gcc/config/i386/driver-i386.c

Modified: llvm-gcc-4.2/trunk/gcc/config/i386/driver-i386.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/driver-i386.c?rev=60531&r1=60530&r2=60531&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/driver-i386.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/driver-i386.c Wed Dec  3 23:19:42 2008
@@ -26,6 +26,8 @@
 
 const char *host_detect_local_cpu (int argc, const char **argv);
 
+/* LLVM LOCAL fix bootstrap failure on ppc host */
+#if defined(__i386__) || defined(__x86_64__)
 #ifdef GCC_VERSION
 #define cpuid(num,a,b,c,d) \
   asm volatile ("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1" \
@@ -298,3 +300,6 @@
   return concat ("-m", argv[0], "=", cpu, NULL);
 }
 #endif /* GCC_VERSION */
+/* LLVM LOCAL fix bootstrap failure on ppc host */
+#endif 
+





More information about the llvm-commits mailing list