From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSXrE-00070w-5j for qemu-devel@nongnu.org; Mon, 11 Aug 2008 09:54:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSXrC-0006yA-0c for qemu-devel@nongnu.org; Mon, 11 Aug 2008 09:54:47 -0400 Received: from [199.232.76.173] (port=47988 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSXrB-0006xl-In for qemu-devel@nongnu.org; Mon, 11 Aug 2008 09:54:45 -0400 Received: from mail-gx0-f19.google.com ([209.85.217.19]:57675) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSXr9-0004xM-Bb for qemu-devel@nongnu.org; Mon, 11 Aug 2008 09:54:43 -0400 Received: by gxk12 with SMTP id 12so119798gxk.10 for ; Mon, 11 Aug 2008 06:54:41 -0700 (PDT) Message-ID: <48A04461.2060001@codemonkey.ws> Date: Mon, 11 Aug 2008 08:53:37 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] gccism's are ok? References: <48A03D89.3020005@redhat.com> In-Reply-To: <48A03D89.3020005@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 Cc: Paul Brook Gerd Hoffmann wrote: > Hi, > > Quick question: Is it ok to use gcc-specific features in qemu? Or will > that break builds on some platform? > > Linux obviously is gcc, MacOS X too as far I know. MinGW on Windows is > gcc too. Anything else we care about? > > I'm thinking especially about the constructor attribute. That would > allow to make drivers self-contained, by having a register() call in a > small constructor function ... > You'll have to post a patch. I had discussed using GCC-isms to do the same thing with Paul Brook and at the time, he was not a big fan of it IIRC. Regards, Anthony Liguori > cheers, > Gerd > >