Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKzJr-0002ZN-M5 for qemu-devel@nongnu.org; Fri, 01 Feb 2008 12:04:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKzJq-0002X9-Pj for qemu-devel@nongnu.org; Fri, 01 Feb 2008 12:04:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKzJq-0002WT-FH for qemu-devel@nongnu.org; Fri, 01 Feb 2008 12:04:50 -0500 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JKzJp-0006rm-TM for qemu-devel@nongnu.org; Fri, 01 Feb 2008 12:04:50 -0500 Date: Fri, 1 Feb 2008 17:04:18 +0000 (GMT) From: Johannes Schindelin Subject: Re: [Qemu-devel] TCG In-Reply-To: <47A31AE8.1010402@bellard.org> Message-ID: References: <47A31AE8.1010402@bellard.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811741-2119005740-1201885459=:7372" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabrice Bellard Cc: qemu-devel@nongnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811741-2119005740-1201885459=:7372 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT Hi, here it bails out: -- snip -- 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 -DCONFIG_HAS_LINUX_COMPILER_H=1 -m32 -I. -I.. -I/home/qemu/target-i386 -I/home/qemu -MMD -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/qemu/tcg -I/home/qemu/tcg/i386 -I/home/qemu/fpu -I/home/qemu/linux-user -I/home/qemu/linux-user/i386 -c -o op.o /home/qemu/target-i386/op.c /home/qemu/target-i386/ops_sse.h: In function ¡op_pshufw_mmx¢: /home/qemu/target-i386/ops_sse.h:593: error: unable to find a register to spill in class ¡GENERAL_REGS¢ /home/qemu/target-i386/ops_sse.h:593: error: this is the insn: (insn:HI 17 16 18 0 /home/qemu/target-i386/ops_sse.h:588 (set (strict_low_part (subreg:HI (reg/v:DI 63 [ r ]) 0)) (mem/s/j:HI (plus:SI (mult:SI (reg:SI 64) (const_int 2 [0x2])) (reg/v/f:SI 59 [ s ])) [0 ._w S2 A16])) 40 {*movstricthi_1} (insn_list:REG_DEP_TRUE 51 (insn_list:REG_DEP_TRUE 12 (insn_list:REG_DEP_TRUE 16 (nil)))) (expr_list:REG_DEAD (reg:SI 64) (nil))) /home/qemu/target-i386/ops_sse.h:593: confused by earlier errors, bailing out -- snap -- and in i386-softmmu it is similar: -- snip -- 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 -DCONFIG_HAS_LINUX_COMPILER_H=1 -m32 -I. -I.. -I/home/qemu/target-i386 -I/home/qemu -MMD -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/qemu/tcg -I/home/qemu/tcg/i386 -I/home/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/qemu/slirp -c -o op.o /home/qemu/target-i386/op.c /home/qemu/target-i386/ops_template_mem.h: In function ¡op_cmpxchgb_kernel_T0_T1_EAX_cc¢: ../softmmu_header.h:170: error: can't find a register in class ¡Q_REGS¢ while reloading ¡asm¢ -- snap -- This is on OpenSUSE 10.2, gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux), with "./configure --disable-gcc-check", and this patch on top of ": typos, Fri Feb 1 13:01:47 2008 +0000": -- snip -- [PATCH] Some Linux setups need linux/compiler.h; if it exists, include it Signed-off-by: Johannes Schindelin --- configure | 3 +++ usb-linux.c | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/configure b/configure index bcb958d..330020d 100755 --- a/configure +++ b/configure @@ -194,6 +194,9 @@ linux_user="yes" if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then kqemu="yes" fi +if [ -f /usr/include/linux/compiler.h ] ; then + OS_CFLAGS="-DCONFIG_HAS_LINUX_COMPILER_H=1" +fi ;; esac diff --git a/usb-linux.c b/usb-linux.c index d3e4e2e..68fdbd2 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -28,6 +28,9 @@ #if defined(__linux__) #include #include +#ifdef CONFIG_HAS_LINUX_COMPILER_H +#include +#endif #include #include #include -- 1.5.4.rc5.32.gc7b9 -- snap -- Ciao, Dscho ---1463811741-2119005740-1201885459=:7372--