PCH not being used, but I can't tell why

Phil Edwards phil@codesourcery.com
Sun Aug 31 07:33:00 GMT 2003


On Wed, Aug 20, 2003 at 01:44:10PM -0400, Phil Edwards wrote:
> > 
> > This seems to lose information...
> 
> AFAICT, it's precisely the lost information that was causing problems before.
> The "can never be valid" test is what's killing things once a directory
> gets tested.
> 
> You said that validate_pch should not be setting state, and that it
> should only be testing the individual candidate file under examination.
> "if (file-pch & 2)" isn't testing the individual candidates; it's also
> testing all the ones that came before.  Accumulation of directory-wide
> state /during the tests/ is the bug here.

I don't have time to keep iterating guesses on this, sorry.  I've filed
a PR in Bugzilla so it won't get lost.

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
    - Brian W. Kernighan



More information about the Gcc mailing list