From 620b8aaa5e70e63a77722e36b00907a5a48622d4 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 8 Nov 2007 11:07:06 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/i386/driver-i386.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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__ */ -- 2.47.2