qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] gccism's are ok?


From: Johannes Schindelin
Subject: Re: [Qemu-devel] gccism's are ok?
Date: Mon, 11 Aug 2008 16:15:00 +0200 (CEST)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

Hi,

On Mon, 11 Aug 2008, Anthony Liguori wrote:

> Gerd Hoffmann wrote:
>
> > 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.

Concretely for the suggestion to replace the nice, deterministic and 
straight-forward registering of drivers with a gcc dependent, unintuitive 
and hard to debug solution, I maintain that it is not a good idea, 
and this has nothing to do with the usage of a gccism.

Ciao,
Dscho





reply via email to

[Prev in Thread] Current Thread [Next in Thread]