From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSXbn-0003yC-SM for qemu-devel@nongnu.org; Mon, 11 Aug 2008 09:38:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSXbm-0003vy-3o for qemu-devel@nongnu.org; Mon, 11 Aug 2008 09:38:51 -0400 Received: from [199.232.76.173] (port=44744 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSXbl-0003ve-QH for qemu-devel@nongnu.org; Mon, 11 Aug 2008 09:38:49 -0400 Received: from wf-out-1314.google.com ([209.85.200.170]:30895) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSXbl-0002Rc-F9 for qemu-devel@nongnu.org; Mon, 11 Aug 2008 09:38:49 -0400 Received: by wf-out-1314.google.com with SMTP id 27so3965289wfd.4 for ; Mon, 11 Aug 2008 06:38:47 -0700 (PDT) Message-ID: <5d6222a80808110638k26632b57k4e1865c514acdd38@mail.gmail.com> Date: Mon, 11 Aug 2008 10:38:47 -0300 From: "Glauber Costa" Subject: Re: [Qemu-devel] gccism's are ok? In-Reply-To: <48A03D89.3020005@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48A03D89.3020005@redhat.com> 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 Mon, Aug 11, 2008 at 10:24 AM, 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 ... I'm doing that in QEMUAccel, and although I'm also not sure how well it'll go, nobody complained so far. > > cheers, > Gerd > > -- > http://kraxel.fedorapeople.org/xenner/ > > > -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."