Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFT6y-0007BX-Q2 for qemu-devel@nongnu.org; Thu, 17 Jan 2008 06:40:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFT6x-0007BL-8B for qemu-devel@nongnu.org; Thu, 17 Jan 2008 06:40:44 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFT6x-0007BI-5H for qemu-devel@nongnu.org; Thu, 17 Jan 2008 06:40:43 -0500 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JFT6w-00035w-L1 for qemu-devel@nongnu.org; Thu, 17 Jan 2008 06:40:42 -0500 Date: Thu, 17 Jan 2008 12:40:36 +0100 From: Jens Arm Subject: Re: [Qemu-devel] [PATCH 1/5] Fix i386 Host Message-Id: <20080117124036.bbf34c8d.Jens.Arm@gmx.de> In-Reply-To: <478F09B8.5060404@csgraf.de> References: <478EF8DE.2050103@csgraf.de> <478F09B8.5060404@csgraf.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi I tried to compile on Debian 4.0, but I get this error: gcc -Wall -O2 -g -fno-strict-aliasing -fno-reorder-blocks -fno-gcse -fno-tree-ch -fno-optimize-sibling-calls -fno-crossjumping -fno-align-labels -fno-align-jumps -fno-align-functions -mpreferred-stack-boundary=2 -fomit-frame-pointer -I. -I.. -I/home/tux/compile/qemu/target-i386 -I/home/tux/compile/qemu -MMD -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/tux/compile/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/tux/compile/qemu/slirp -c -o op.o /home/tux/compile/qemu/target-i386/op.c /home/tux/compile/qemu/target-i386/op.c: In function ‘op_fstl_ST0_A0’: /home/tux/compile/qemu/target-i386/op.c:1925: error: unable to find a register to spill in class ‘GENERAL_REGS’ /home/tux/compile/qemu/target-i386/op.c:1925: error: this is the insn: (insn:HI 55 54 56 2 ../cpu-all.h:372 (set (mem:DI (plus:SI (reg/v:SI 60 [ addr ]) (reg:SI 84 [ .addend ])) [0 S8 A64]) (reg/v:DI 63 [ u ])) 80 {*movdi_2} (insn_list:REG_DEP_TRUE 54 (nil)) (expr_list:REG_DEAD (reg/v:DI 63 [ u ]) (expr_list:REG_DEAD (reg/v:SI 60 [ addr ]) (expr_list:REG_DEAD (reg:SI 84 [ .addend ]) (nil))))) /home/tux/compile/qemu/target-i386/op.c:1925: confused by earlier errors, bailing out I use "gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)". Qemu is configured like this: ./configure --disable-gcc-check --disable-darwin-user --disable-linux-user --target-list=i386-softmmu Hope this helps. Jens On Thu, 17 Jan 2008 08:54:32 +0100 Alexander Graf wrote: > Johannes Schindelin wrote: > > Hi, > > > > On Thu, 17 Jan 2008, Alexander Graf wrote: > > > > > >> This patch is mostly a cleanup of Michael Matz's patch with the ideas > >> that came last time included. > >> > > > > Maybe the patch subject could be "prepare i386 host for gcc4, step 1)? > > > > > > Basically it fixes it, just not completely ;-). > > >> Index: qemu/softmmu_header.h > >> =================================================================== > >> --- qemu.orig/softmmu_header.h > >> +++ qemu/softmmu_header.h > >> @@ -189,9 +189,11 @@ static inline void glue(glue(st, SUFFIX) > >> #else > >> #error unsupported size > >> #endif > >> + "pushl %%ecx\n" > >> "pushl %6\n" > >> "call %7\n" > >> "popl %%eax\n" > >> + "popl %%ecx\n" > >> > > > > Could you guard this so that this code is only included for gcc4? (I am > > assuming that it is not needed for gcc3, as it worked so far...) > > > > > You're right on that one. Thanks for the catch. > >