Re: [RFC] let kvm be compiled with gcc4 and prevent users to shoot themselves in the foot while doing so (was Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work)

Carlo Marcelo Arenas Belon
2007-10-08T06:15:36Z

On Sun, Oct 07, 2007 at 06:18:27PM -0400, Jim Paris wrote:
> > + if test $check_gcc = "no" ; then
> > + if gcc -v 2>&1 | grep -q 'gcc *version *4\.[0-3]\.[0-9]'; then
> > + echo "#define USE_GCC4 1" >> $config_h
> > + fi
> > + fi
>
> Something like
>
> #if __GNUC__ >= 4
>
> in the code would be simpler.

really good idea; and also as a side effect makes the patches independent as
there is no need to have that qemu's configure glue anymore.

Carlo