This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PCH] cpp & dependencies
- From: Devang Patel <dpatel at apple dot com>
- To: Geoffrey Keating <geoffk at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 3 Sep 2002 19:12:21 -0700
- Subject: Re: [PCH] cpp & dependencies
On Sunday, September 1, 2002, at 05:34 PM, Geoffrey Keating wrote:
This adds saving/restoring CPP macros, and validity checking of the
CPP macro state. This should be enough to precompile any header that
doesn't actually contain any C code.
Bootstrapped & tested on x86-linux.
In cpp_write_pch() writing
- list of identifiers that are not defined
- list of identifiers that are defined
But in cpp_valid_pch() while validating you are reading
- list of identifiers that must be defined
- list of identifiers that must not be defined
The ordering between writing and reading does not seem consistent
to me. Or am I missing something?
Thanks,
-Devang