[PCH] cpp & dependencies

Devang Patel dpatel@apple.com
Tue Sep 3 19:13:00 GMT 2002


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



More information about the Gcc-patches mailing list