This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Can -frepo be used with PCH?
- From: r6144 <r6k at sohu dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 20 Mar 2004 12:06:14 +0800
- Subject: Can -frepo be used with PCH?
Last time I tried (gcc 20040107), -frepo didn't work with PCH (nothing
is instantiated by the recompilation by collect2, causing link to
fail). I guess that's because the recompilation by collect2 has some
additional options which are not considered in the PCH file, but it
was used anyway.
I'm on i686-redhat-linux (Redhat 9). I used -frepo in the hope of
speeding up compilation for avoid instantiating duplicate templates
in large projects (correct me if I'm wrong).
I have not found any relevent changes since then that may fix this.
Question:
1. Has this been fixed by now? I apologize for my laziness :)
If not,
2. Is this fixable while still using the PCH during both passes? If
not, maybe some warning should be given.