This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/13218] Potential problems with PCH and includes relative to current directory
- From: "carlo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2003 18:03:23 -0000
- Subject: [Bug pch/13218] Potential problems with PCH and includes relative to current directory
- References: <20031128171002.13218.carlo@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From carlo at gcc dot gnu dot org 2003-11-28 18:03 -------
Well, an alternative would be to re-run the preprocessor
on the source of the pch file and compare the resulting
outcome. This takes some time, but you only have to
do it for every different 'current directory' that gcc
is in at the moment it includes the pch file.
The pch file should then included:
- The current directory.
- A checksum on the preprocessor output till then.
Extra cpu needed: rerun the preprocessor for every
additional current directory from which the pch
seems to be needed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13218