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


> Date: Mon, 11 Aug 2003 15:23:41 -0400
> From: Phil Edwards <phil@jaj.com>

> On Mon, Aug 11, 2003 at 12:08:35PM -0700, Geoff Keating wrote:
> > Benjamin Kosnik <bkoz@redhat.com> writes:
> > 
> > > Geoff, pretty sure this is not a directory naming thing. 
> > 
> > Hmmm.  The 'x' means that indeed it's being found and is considered to
> > be invalid, so it ought to print out a message with -Winvalid-pch.  
> > 
> > Looking at the code, it seems like there are some exit paths from
> > cpp_valid_state that don't print a warning message.  Try this patch
> > and tell me if it helps.
> 
> 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?

-- 
- 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]