This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Don't output pch info for plugins
- From: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- To: Rafael Espindola <espindola at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Diego Novillo <dnovillo at google dot com>, Duncan Sands <baldrick at free dot fr>
- Date: Fri, 25 Sep 2009 07:50:03 +0200
- Subject: Re: [patch] Don't output pch info for plugins
- References: <38a0d8450909240907u383b4c92y60cd2eacfb94559d@mail.gmail.com>
Rafael Espindola wrote:
Plugins don't work with precompiled headers. This patch avoids printing
pch info in plugin mode.
2009-09-24 Basile Starynkevitch <basile@starynkevitch.net>
Rafael Avila de Espindola <espindola@google.com>
* gengtype.c (write_root, write_roots): Add a emit_pch argument.
Don't print pch related info if it is false.
(main): Don't print pch info in plugin mode.
I hope this patch (and the others by Rafael) will be ok-ed.
Maybe we could also add a comment inside function gt_pch_save of file
gcc/ggc-common.c like
/* We don't iterate on extra_root_vec because plugin-registered roots
are not expected to have PCH routines, since gengtype don't generate them */
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***