]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/32787 (Sun Studio 12 Undefined symbol addl)
authorUros Bizjak <ubizjak@gmail.com>
Thu, 8 Nov 2007 10:07:06 +0000 (11:07 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 8 Nov 2007 10:07:06 +0000 (11:07 +0100)
PR target/32787
Backport from mainline:

2007-11-06  Rask Ingemann Lambertsen  <rask@sygehus.dk>

* config/i386/driver-i386.c: Test for __GNUC__ instead of
GCC_VERSION which is always defined.

From-SVN: r129993

gcc/ChangeLog
gcc/config/i386/driver-i386.c

index f98829a6c702ef05e01bcf44098494166879b178..967505755773c1fa36ef767780b9fdc45fff6e28 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-08  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/32787
+       Backport from mainline:
+
+       2007-11-06  Rask Ingemann Lambertsen  <rask@sygehus.dk>
+
+       * config/i386/driver-i386.c: Test for __GNUC__ instead of
+       GCC_VERSION which is always defined.
+
 2007-11-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR rtl-optimization/33822
index aca450de26c4c4e7672f17a9c46e41e735c96762..42ccea44ef97aab62dc7e533e65b9ebb78863303 100644 (file)
@@ -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__ */