Browse Source

fix a bug in the use of the GCC_VERSION macro. This allows bootstrapping again on a bare Solaris 10/amd64 (core) with just Sun Studio 12 installed

Ralf S. Engelschall 18 years ago
parent
commit
569dcee6de
2 changed files with 13 additions and 1 deletions
  1. 12 0
      gcc/gcc.patch
  2. 1 1
      gcc/gcc.spec

+ 12 - 0
gcc/gcc.patch

@@ -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)  \

+ 1 - 1
gcc/gcc.spec

@@ -37,7 +37,7 @@ Class:        CORE
 Group:        Compiler
 License:      GPL
 Version:      %{V_full}
-Release:      20070611
+Release:      20070710
 
 #   package options
 %option       with_cxx       yes