From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EoTaV-0001Qx-PY for qemu-devel@nongnu.org; Mon, 19 Dec 2005 17:34:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EoTaU-0001QK-Bf for qemu-devel@nongnu.org; Mon, 19 Dec 2005 17:34:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoTaU-0001QF-5a for qemu-devel@nongnu.org; Mon, 19 Dec 2005 17:34:34 -0500 Received: from [84.96.92.56] (helo=smTp.neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EoTdV-0007UV-88 for qemu-devel@nongnu.org; Mon, 19 Dec 2005 17:37:41 -0500 Received: from [84.99.204.30] by sp604003mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0IRR003WOO02AJV1@sp604003mt.gpm.neuf.ld> for qemu-devel@nongnu.org; Mon, 19 Dec 2005 23:33:39 +0100 (CET) Date: Mon, 19 Dec 2005 23:35:35 +0100 From: Fabrice Bellard Subject: Re: [Qemu-devel] [PATCH] support for Mac OS X default compiler In-reply-to: <4069F0DD-347D-4555-9DC4-76F4AF1C988F@stud.tu-ilmenau.de> Message-id: <43A735B7.6000707@bellard.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <4069F0DD-347D-4555-9DC4-76F4AF1C988F@stud.tu-ilmenau.de> 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 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.