From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JuEqV-0002ir-E4 for qemu-devel@nongnu.org; Thu, 08 May 2008 18:44:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JuEqU-0002i4-S0 for qemu-devel@nongnu.org; Thu, 08 May 2008 18:44:15 -0400 Received: from [199.232.76.173] (port=51654 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuEqU-0002hs-L0 for qemu-devel@nongnu.org; Thu, 08 May 2008 18:44:14 -0400 Received: from hall.aurel32.net ([91.121.138.14]:58436) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JuEqT-00056i-Rb for qemu-devel@nongnu.org; Thu, 08 May 2008 18:44:14 -0400 Received: from volta.aurel32.net ([2002:52e8:2fb:1:21e:8cff:feb0:693b]) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JuEqR-00031R-TW for qemu-devel@nongnu.org; Fri, 09 May 2008 00:44:12 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1JuEqS-0008Et-D0 for qemu-devel@nongnu.org; Fri, 09 May 2008 00:44:12 +0200 Date: Fri, 9 May 2008 00:44:12 +0200 From: Aurelien Jarno Message-ID: <20080508224412.GA30981@volta.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Subject: [Qemu-devel] [RFC][PATCH] Use HOST_CC instead of CC on TCG only targets 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 Now that we have 3 TCG only targets (arm, cris, sparc) and 1 being actively converted (mips), I think it does not make sense anymore to build those targets with gcc-3.4. For example on hppa, gcc-3.4 is buggy and unable to compile target-sparc/softmmu.c. OTOH, I haven't found any noticeable speed improvement comparing gcc-3.4 and gcc-4.3. The patch below is maybe a bit hackish, but enables the use of the default compiler for TCG only targets. I am not sure it is worth doing a more complex patch given than all targets are supposed to be converted to TCG sooner or later. diff --git a/Makefile.target b/Makefile.target index bb1f3e5..95e4152 100644 --- a/Makefile.target +++ b/Makefile.target @@ -1,5 +1,9 @@ include config.mak +ifdef CONFIG_NO_DYNGEN_OP +CC=$(HOST_CC) +endif + TARGET_BASE_ARCH:=$(TARGET_ARCH) ifeq ($(TARGET_ARCH), x86_64) TARGET_BASE_ARCH:=i386 -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net