qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] support for Mac OS X default compiler


From: Fabrice Bellard
Subject: Re: [Qemu-devel] [PATCH] support for Mac OS X default compiler
Date: Mon, 19 Dec 2005 23:35:35 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

Does -fno-tree-ch works on PC ?

Fabrice.

Joachim Henke wrote:
I know that you have already discussed this on the list, and that you don't
want to actively support GCC 4. But (at least on Mac OS X) only a fix in
the build configuration is necessary to do the magic: op.c must be compiled
with -fno-tree-ch (as already mentioned on this mailing list).

GCC 4.0 is the default compiler since Mac OS 10.4 (Tiger). Apple still
ships GCC 3.3 20030304 with Xcode 2.2, but doesn't seem to update it
anymore. As the thread
http://lists.gnu.org/archive/html/qemu-devel/2005-12/msg00077.html
turned out, this old compiler has some obvious bugs (further bugs have been
reported on the web - even with code that is less complex than QEMU).

So why not support GCC 4 out of the box? The patch below does this, and
should not hurt anybody. Users are still required to pass
--disable-gcc-check to the configure script - but if they do, GCC 4 will
get it's right command line options.

I tested this with GCC 4.0.1 from Xcode 2.2, and all six softmmu targets
were build without errors. Maybe it works on Linux PPC too?

Would be nice, if you could apply this patch. It makes testing and building
with GCC 4 easier.

Best regards
Jo.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]