From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JstkZ-0007s0-Ml for qemu-devel@nongnu.org; Mon, 05 May 2008 02:00:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JstkY-0007rH-Ff for qemu-devel@nongnu.org; Mon, 05 May 2008 02:00:34 -0400 Received: from [199.232.76.173] (port=33556 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JstkX-0007r9-QH for qemu-devel@nongnu.org; Mon, 05 May 2008 02:00:33 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JstkX-0006zg-AQ for qemu-devel@nongnu.org; Mon, 05 May 2008 02:00:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JstkT-000239-FL for qemu-devel@nongnu.org; Mon, 05 May 2008 06:00:29 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JstkS-000235-Oe for qemu-devel@nongnu.org; Mon, 05 May 2008 06:00:29 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Mon, 05 May 2008 06:00:28 +0000 Subject: [Qemu-devel] [4337] Qemu 32-bit i386, gcc >= 3.4 spill error fix 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 Revision: 4337 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4337 Author: aurel32 Date: 2008-05-05 06:00:27 +0000 (Mon, 05 May 2008) Log Message: ----------- Qemu 32-bit i386, gcc >= 3.4 spill error fix (Ben Taylor) Modified Paths: -------------- trunk/Makefile.target trunk/configure Modified: trunk/Makefile.target =================================================================== --- trunk/Makefile.target 2008-05-04 21:42:11 UTC (rev 4336) +++ trunk/Makefile.target 2008-05-05 06:00:27 UTC (rev 4337) @@ -96,7 +96,13 @@ ifeq ($(ARCH),i386) HELPER_CFLAGS+=-fomit-frame-pointer OP_CFLAGS+=-mpreferred-stack-boundary=2 -fomit-frame-pointer +# op.c and helper.c need this on 32-bit x86 system to avoid +# a compiler spill error. This can probably go away +# once the SSE ops have been converted to TCG +ifeq ($(HAVE_GT_GCC_3_3), true) +I386_CFLAGS=-march=i586 -mtune=i686 endif +endif ifeq ($(ARCH),ppc) CPPFLAGS+= -D__powerpc__ @@ -309,7 +315,7 @@ $(DYNGEN) -g -o $@ $< op.o: op.c - $(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $< + $(CC) $(OP_CFLAGS) $(CPPFLAGS) $(I386_CFLAGS) -c -o $@ $< machine.o: machine.c $(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $< @@ -319,7 +325,7 @@ ifeq ($(TARGET_BASE_ARCH), i386) # XXX: rename helper.c to op_helper.c helper.o: helper.c - $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< + $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) $(I386_CFLAGS) -c -o $@ $< else op_helper.o: op_helper.c $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< Modified: trunk/configure =================================================================== --- trunk/configure 2008-05-04 21:42:11 UTC (rev 4336) +++ trunk/configure 2008-05-05 06:00:27 UTC (rev 4337) @@ -1199,6 +1199,13 @@ then echo "#define USE_KQEMU 1" >> $config_h fi + gcc3minver=`$cc --version 2> /dev/null| fgrep "(GCC) 3." | awk '{ print $3 }' | cut -f2 -d.` + if test -n "$gcc3minver" -a $gcc3minver -gt 3 + then + echo "HAVE_GT_GCC_3_3=true" >> $config_mak + else + echo "HAVE_GT_GCC_3_3=false" >> $config_mak + fi ;; x86_64) echo "TARGET_ARCH=x86_64" >> $config_mak