All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [RFC][PATCH] Use HOST_CC instead of CC on TCG only targets
Date: Fri, 9 May 2008 00:44:12 +0200	[thread overview]
Message-ID: <20080508224412.GA30981@volta.aurel32.net> (raw)

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

             reply	other threads:[~2008-05-08 22:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08 22:44 Aurelien Jarno [this message]
2008-05-08 22:56 ` [Qemu-devel] [RFC][PATCH] Use HOST_CC instead of CC on TCG only targets Paul Brook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080508224412.GA30981@volta.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.