This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: plugins & PCH are incompatible ...
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 28 Apr 2009 08:18:57 -0700
- Subject: Re: plugins & PCH are incompatible ...
- References: <49F6F5DC.9000104@starynkevitch.net>
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