This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]