This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32787] Sun Studio 12 Undefined symbol addl
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2007 04:26:25 -0000
- Subject: [Bug target/32787] Sun Studio 12 Undefined symbol addl
- References: <bug-32787-14866@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-07-17 04:26 -------
Try this patch:
Index: config/i386/driver-i386.c
===================================================================
--- config/i386/driver-i386.c (revision 126667)
+++ config/i386/driver-i386.c (working copy)
@@ -26,7 +26,7 @@
const char *host_detect_local_cpu (int argc, const char **argv);
-#ifdef GCC_VERSION
+#if 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) \
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Component|inline-asm |target
Target Milestone|--- |4.2.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32787