From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iedwl-0004RA-Ig for qemu-devel@nongnu.org; Sun, 07 Oct 2007 17:45:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iedwh-0004Pi-Nm for qemu-devel@nongnu.org; Sun, 07 Oct 2007 17:45:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iedwh-0004Pf-I0 for qemu-devel@nongnu.org; Sun, 07 Oct 2007 17:45:55 -0400 Received: from bangui.magic.fr ([195.154.194.245]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iedwh-000161-2o for qemu-devel@nongnu.org; Sun, 07 Oct 2007 17:45:55 -0400 Received: from [192.168.0.2] (ppp-36.net-123.static.magiconline.fr [80.118.184.36]) by bangui.magic.fr (8.13.1/8.13.1) with ESMTP id l97LjlBd019365 for ; Sun, 7 Oct 2007 23:45:47 +0200 Subject: Re: [Qemu-devel] PPC build errors in CVS From: "J. Mayer" In-Reply-To: <47094A70.9080800@earthlink.net> References: <47094A70.9080800@earthlink.net> Content-Type: text/plain Date: Sun, 07 Oct 2007 23:45:51 +0200 Message-Id: <1191793552.9976.53.camel@rapid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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 On Sun, 2007-10-07 at 17:06 -0400, Robert Reif wrote: > PPC compiling has been broken for me in CVS for a few days and is > getting worse. > I'm running Red Hat 9. > plain text document attachment (ppc.errors.txt) The current CVS builds here, at least on amd64 and x86. But Red Hat as a long tradition of buggy compilers, it seems... As I usually use gcc 3.4.6, I just tried with official gcc 4.1.1, 4.1.2 and 4.2.0 and it this file (target-ppc/translate.c) still compiles (with a lot of warnings though). I also took a look in C 99 specification and I saw no restriction on writing: do_this(a, #ifdef _this_is_defined b, #else c, #endif d); when do_this() is defined as a macro. May I suggest you to use a C99 compliant compiler ? I don't feel like making my code less readable just because some use buggy compilers. (but if someone tells me what in the ISO C specification, that I would have missed, explicitelly forbids this). [...] -- J. Mayer Never organized