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


Phil Edwards <phil@jaj.com> writes:

> On Mon, Aug 11, 2003 at 02:33:46PM -0700, Geoff Keating wrote:
> > > No difference:
> > > 
> > > x /mnt/build/build-2003-08-11/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/stdc++.h.gch/O0g
> > > x /mnt/build/build-2003-08-11/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/stdc++.h.gch/O2g
> > > . /mnt/build/build-2003-08-11/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/stdc++.h
> > 
> > Could you start gdb, break on c_common_valid_pch, and see what's going
> > on?
> 
> That function is never called.

It should be being called from validate_pch in cppfiles.c (as
"cb.valid_pch"), right above where the line with the 'x' is printed.
The only way it wouldn't be called is if open_file had earlier
returned 'false'.  Could you see if that's really happening, and if so
why open_file is doing that?

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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