[patch] Don't output pch info for plugins

Basile STARYNKEVITCH basile@starynkevitch.net
Fri Sep 25 08:25:00 GMT 2009


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} ***



More information about the Gcc-patches mailing list