* Re: [Qemu-devel] qemu CVS HEAD does not compile with gcc 3.4
2004-06-24 9:30 [Qemu-devel] qemu CVS HEAD does not compile with gcc 3.4 felix-qemu
@ 2004-06-24 6:12 ` Jani Monoses
0 siblings, 0 replies; 2+ messages in thread
From: Jani Monoses @ 2004-06-24 6:12 UTC (permalink / raw)
To: qemu-devel
> /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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Qemu-devel] qemu CVS HEAD does not compile with gcc 3.4
@ 2004-06-24 9:30 felix-qemu
2004-06-24 6:12 ` Jani Monoses
0 siblings, 1 reply; 2+ messages in thread
From: felix-qemu @ 2004-06-24 9:30 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-24 13:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 9:30 [Qemu-devel] qemu CVS HEAD does not compile with gcc 3.4 felix-qemu
2004-06-24 6:12 ` Jani Monoses
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.