Skip to contentSkip to conversation

Check for gcc3 only if compiling dyngen targets

PATCH Sylvain Petreolle 3 participants 3 messages Aug 22, 2008 – Aug 23, 2008

lore
Share & tools
lore
#0 lore raw

----- Message d'origine ----

Quoted 26 lines

De : Anthony Liguori <[email protected]>
À : [email protected]
Envoyé le : Vendredi, 22 Août 2008, 20h01mn 51s
Objet : Re: [Qemu-devel] [PATCH] Check for gcc3 only if compiling dyngen targets

Quoted 8 lines · Hervé Poussineau

Hi,

If no configured target needs dyngen, gcc3.x is not required. Currently, you have to explicitly pass --disable-gcc-check flag to allow compilation.

Attached patch removes gcc check if no selected target needs dyngen. I had to move gcc4 detection later in the configure script

This patch breaks gcc3 autodetection in a subtle way. You more the autodetect down much further after $cc is used to compile a bunch of test executables. gcc3 autodetection may change $cc so all of those compile tests are now invalid.

I posted a patch a while ago that did basically the same thing but didn't suffer from this problem. Paul Brook basically Nacked it though as it's a lot of ugliness for little short term gain. Let's wait a bit longer and hope that the remaining targets get converted to TCG before doing a partial switch to gcc4.

Quoted 6 lines

Regards,

Anthony Liguori

Quoted 2 lines

Hervé

Currently --disable-gcc-check isnt documented, it only appears on failure to find compatible gcc (ie 3.x).

Kind regards,
Sylvain Petreolle

#1 lore raw
Quoted 2 lines · Sylvain Petreolle

Currently --disable-gcc-check isnt documented, it only appears on failure to find compatible gcc (ie 3.x).

Patches are always welcome.

Regards,

Anthony Liguori

Quoted 6 lines

Kind regards,
Sylvain Petreolle

#2 lore raw

Am 22.08.2008 um 21:30 schrieb Anthony Liguori:

Quoted 5 lines
Quoted 2 lines · Sylvain Petreolle

Currently --disable-gcc-check isnt documented, it only appears on failure to find compatible gcc (ie 3.x).

Patches are always welcome.

I remember hearing it wasn't supposed to be documented at dyngen-only times?

Applying such a patch now but not applying a GCC check suppression for non-dyngen targets sounds unlogical. Neither will be needed once the remaining dyngen targets are converted, TCG targets are available from SVN only currently.

Andreas