From: Matthias Braun Date: Wed, 9 Feb 2011 13:55:12 +0000 (+0000) Subject: ebx is no problem with pic when compiling in 64bit (but the pushl+popl are) X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b69024b19a29d4d469671fb24c46798341cf96ed;p=libfirm ebx is no problem with pic when compiling in 64bit (but the pushl+popl are) [r28342] --- diff --git a/ir/be/ia32/ia32_architecture.c b/ir/be/ia32/ia32_architecture.c index 56af30432..2ffda7846 100644 --- a/ir/be/ia32/ia32_architecture.c +++ b/ir/be/ia32/ia32_architecture.c @@ -740,7 +740,7 @@ typedef union { static void x86_cpuid(cpuid_registers *regs, unsigned level) { #if defined(__GNUC__) -# ifdef __PIC__ // GCC cannot handle EBX in PIC +# if defined(__PIC__) && !defined(__amd64) // GCC cannot handle EBX in PIC __asm ( "pushl %%ebx\n\t" "cpuid\n\t"