Skip to contentSkip to conversation

qemu CVS HEAD does not compile with gcc 3.4

Qemu-devel [email protected] 2 participants 2 messages Jun 24, 2004

lore
Share & tools
lore
#0 lore raw

Here's what happens:

make[1]: Entering directory `/cvs/qemu/i386'
gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -mpreferred-stack-boundary=2 -falign-functions=0 -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I/cvs/qemu/target-i386 -I/cvs/qemu -D_GNU_SOURCE -I/cvs/qemu/slirp -c -o op.o /cvs/qemu/target-i386/op.c /cvs/qemu/target-i386/ops_template_mem.h: In function `op_rolb_kernel_T0_T1_cc':
/cvs/qemu/softmmu_header.h:179: error: can't find a register in class GENERAL_REGS' while reloading asm'
make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/cvs/qemu/i386'
gmake: *** [all] Error 1

It's the function "glue", which is static inline, but still uses ebp. Huh? We are compiling -fomit-frame-pointer...?

The function spills eax, ecx and edx, takes two register arguments and two memory location arguments. Apparently, gcc 3.4 wants to put the memory locations into registers as well...?

Felix

#1 lore raw
Quoted 5 lines

/cvs/qemu/target-i386/ops_template_mem.h: In function op_rolb_kernel_T0_T1_cc':/cvs/qemu/softmmu_header.h:179: error: can't find a register in class GENERAL_REGS' while reloading asm' make[1]: *** [op.o] Error 1 make[1]: Leaving directory /cvs/qemu/i386'
gmake: *** [all] Error 1

does extending the test in target-i386/op.c to cover gcc 3.4.0 solve this? now it only handles gcc 3.3.X.

#if !(__GNUC__ == 3 && __GNUC_MINOR__ == 3)
#define ASM_SOFTMMU
#endif