This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: plugins & PCH are incompatible ...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]