This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: Don't initialize C frontend builtins when only preprocessing
Mike Stump <mrs@apple.com> writes:
> On Dec 28, 2006, at 2:41 PM, Ian Lance Taylor wrote:
> > I'm not going to argue that we should go back to cccp.c, but we do
> > need to do some work to speed up the preprocessor when only doing
> > preprocessing.
>
> Does this work with -fpch-preprocess -E and then using that pch file
> to compile a file that uses one of these types? The problem is the
> entire compiler state for compilation is built up during
> preprocessing and then is used for the compilation.
It seems to work in my testing. It seems to me that it will work
because where those builtins matter they will get wrapped up in the
PCH anyhow.
If you think there is a problem here I would not be adverse to
changing
if (!flag_preprocess_only)
to
if (!flag_preprocess_only && !flag_pch_preprocess)
Ian