From: Uros Bizjak Date: Thu, 8 Nov 2007 10:07:06 +0000 (+0100) Subject: re PR target/32787 (Sun Studio 12 Undefined symbol addl) X-Git-Tag: prereleases/gcc-4.2.3-rc1~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=620b8aaa5e70e63a77722e36b00907a5a48622d4;p=thirdparty%2Fgcc.git re PR target/32787 (Sun Studio 12 Undefined symbol addl) PR target/32787 Backport from mainline: 2007-11-06 Rask Ingemann Lambertsen * config/i386/driver-i386.c: Test for __GNUC__ instead of GCC_VERSION which is always defined. From-SVN: r129993 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f98829a6c702..967505755773 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2007-11-08 Uros Bizjak + + PR target/32787 + Backport from mainline: + + 2007-11-06 Rask Ingemann Lambertsen + + * config/i386/driver-i386.c: Test for __GNUC__ instead of + GCC_VERSION which is always defined. + 2007-11-07 Eric Botcazou PR rtl-optimization/33822 diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index aca450de26c4..42ccea44ef97 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see const char *host_detect_local_cpu (int argc, const char **argv); -#ifdef GCC_VERSION +#ifdef __GNUC__ #define cpuid(num,a,b,c,d) \ asm volatile ("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1" \ : "=a" (a), "=r" (b), "=c" (c), "=d" (d) \ @@ -296,4 +296,4 @@ const char *host_detect_local_cpu (int argc, const char **argv) return concat ("-m", argv[0], "=", cpu, NULL); } -#endif /* GCC_VERSION */ +#endif /* __GNUC__ */