versions of gcc (bug #10022).
+2004-08-16 Rhys Weatherley <rweather@southern-storm.com.au>
+
+ * jit/jit-cpuid-x86.c (cpuid_query): use %ebx in a way that doesn't
+ confuse PIC mode in some versions of gcc (bug #10022).
+
2004-08-13 Rhys Weatherley <rweather@southern-storm.com.au>
* include/jit/jit-insn.h, include/jit/jit-opcode.h,
#if defined(__GNUC__)
__asm__ __volatile__ (
"\tmovl %0, %%eax\n"
+ "\tpushl %%ebx\n"
"\txorl %%ebx, %%ebx\n"
"\txorl %%ecx, %%ecx\n"
"\txorl %%edx, %%edx\n"
"\tmovl %%ebx, 4(%%esi)\n"
"\tmovl %%ecx, 8(%%esi)\n"
"\tmovl %%edx, 12(%%esi)\n"
- : : "m"(index), "m"(info) : "eax", "ebx", "ecx", "edx", "esi"
+ "\tpopl %%ebx\n"
+ : : "m"(index), "m"(info) : "eax", "ecx", "edx", "esi"
);
#endif
}