Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWIAp-00029D-UK for qemu-devel@nongnu.org; Thu, 21 Aug 2008 17:58:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWIAn-000291-J9 for qemu-devel@nongnu.org; Thu, 21 Aug 2008 17:58:30 -0400 Received: from [199.232.76.173] (port=54078 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWIAn-00028y-DC for qemu-devel@nongnu.org; Thu, 21 Aug 2008 17:58:29 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:39238) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWIAn-0001QD-2M for qemu-devel@nongnu.org; Thu, 21 Aug 2008 17:58:29 -0400 Message-Id: <23611F7C-536F-4BFB-BFED-3ACBA00A08CA@web.de> From: =?WINDOWS-1252?Q?Andreas_F=E4rber?= In-Reply-To: <28953775164-BeMail@laptop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: [Qemu-devel] c99 or not? Date: Thu, 21 Aug 2008 23:58:05 +0200 References: <28953775164-BeMail@laptop> 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, =?WINDOWS-1252?Q?Fran=E7ois_Revol?= Am 18.08.2008 um 00:33 schrieb Fran=E7ois Revol: > As a BeOS and Haiku dev, I'm used to having to "fix" apps back to c89 > to get them working with gcc2 because we are forced to stick to it due > to the C++ ABI breackage. > Haiku shall also provice gcc4 soon, and it might be possible to get > gcc4 usable under BeOS, but it's like hunting a fly with a hand > grenade. It's not just about where variables are declared or how fields are =20 initialized, but also some assumptions that cannot safely be made in =20 ANSI C (iirc someone from Plan 9 had complained, too). Anyway, a lot =20 of code has recently been reworked to consequently use C99 features, =20 so reverting those is unlikely to happen. QEMU doesn't use C++ to my knowledge, so it should work just fine =20 across ABIs. Just means you'd currently have to cross-compile for =20 Haiku. TCG and the recent addition of a --disable-aio switch for =20 OpenBSD should help with that if you want to do it. > I didn't try to build QEMU on BeOS for quite some time, not even > sure it'd still build. I don't know if Mickael Lotz (BeOS port > maintainer IIRC) has recent builds either. Michael has apparently posted 0.9.1 on BeBits: http://www.bebits.com/app/4208 Didn't try it though, I rather run BeOS or Haiku as guests. Michael =20 said his patches were very intrusive, so he doesn't post them here. Andreas