plugins & PCH are incompatible ...

Andrew Pinski pinskia@gmail.com
Tue Apr 28 15:22:00 GMT 2009


On Tue, Apr 28, 2009 at 5:26 AM, Basile STARYNKEVITCH
<basile@starynkevitch.net> wrote:
> Hello All,
>
> In my perception, plugins and precompiled headers generation are
> incompatible, since when the generated PCH would be reloaded, the plugins
> might not be available or similar enough.
>
> Or is there already some mechanism avoiding (or at least checking reliably)
> PCH generation with plugins?

I don't think plugins should be incompatible with PCH.  plugins should
be loaded before PCH is generated and before PCHs are loaded so they
should be compatible.  I think you add a check in the PCH code for the
same plugins loaded.  Some plugins don't make a difference for PCH too
like optimization plugins.

-- Pinski



More information about the Gcc-patches mailing list