Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWG4Q-0000mG-CV for qemu-devel@nongnu.org; Thu, 21 Aug 2008 15:43:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWG4O-0000lU-2f for qemu-devel@nongnu.org; Thu, 21 Aug 2008 15:43:45 -0400 Received: from [199.232.76.173] (port=48024 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWG4N-0000lQ-Tq for qemu-devel@nongnu.org; Thu, 21 Aug 2008 15:43:43 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:56695) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWG4N-0000IX-DP for qemu-devel@nongnu.org; Thu, 21 Aug 2008 15:43:44 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: [Qemu-devel] c99 or not? Date: Thu, 21 Aug 2008 21:43:10 +0200 References: <48A8B438.6040109@codemonkey.ws> Sender: andreas.faerber@web.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 Am 18.08.2008 um 01:34 schrieb Ben Taylor: > On Sun, Aug 17, 2008 at 7:28 PM, Anthony Liguori > wrote: >> Ben Taylor wrote: >>> >>> I've been hacking about on qemu again on Solaris 10, which I've run >>> into an issue. >>> >>> in the nbd.h file, it includes stdbool.h, but on Solaris 10, you >>> have >>> to enable c99 >>> to get this to compile. >>> >> >> Are you not using GCC? QEMU is not known to support any compilers >> other >> than GCC. > > gcc-3.4.3. though once the tcg conversion is complete, I want to > give studio 12 a whirl. > >> Perhaps you need to specify -std=gnu99 instead of -std=c99? > > I'll give that a shot. -std=gnu99 takes me further on S10, but compilation fails in cpu- exec.c:694 with "error: bp cannot be used in asm here". There are also a lot of redefinition warnings for isnormal, isgreater etc. between Solaris' math[_c99].h and softfloat[_native].h. Andreas