public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: more pch questions
@ 2003-03-11 19:05 Benjamin Kosnik
  2003-03-11 19:29 ` Geoffrey Keating
  0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Kosnik @ 2003-03-11 19:05 UTC (permalink / raw)
  To: geoffk; +Cc: gcc


Hmmm. You keep saying this, and I keep telling you that -Winvalid-pch 
doesn't hack it.

So. In this case, when I'm compiling with a found .gch file, and it's 
found to be invalid, -Winvalid-pch says nothing.

Can you please take a look at this?

-benjamin

^ permalink raw reply	[flat|nested] 8+ messages in thread
* more pch questions
@ 2003-03-11  6:46 Benjamin Kosnik
  2003-03-11 19:04 ` Geoffrey Keating
  0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Kosnik @ 2003-03-11  6:46 UTC (permalink / raw)
  To: gcc; +Cc: geoffk


Geoff. 

I'm debugging cc1plus when compiling the following

% cat > test.cc
#include <string>
#include <vector>

This is with the stdc++.h.gch patch as pointed out before, and a
generated stdc++.h.gch that seems to be valid, and in the correct place
as far as the search path.

It looks like the stdc++.h.gch file is indeed found (open_file_pch), but
ruled invalid in cpp_valid_state.

(gdb) f
#0  cpp_valid_state (r=0x85b8000, name=0xbfffdedc "/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/stdc++.h.gch", fd=7) at /mnt/hd/src/gcc/gcc/cpppch.c:474

at the "lose" part of the function cpp_valid_state, ie cpppch.c: 473

 fail:
  if (namebuf != NULL)
    free (namebuf);
  if (undeftab != NULL)
    free (undeftab);
  return 1;

(gdb) p namebuf
$54 = (unsigned char *) 0x85c7d28 "__GNUG__ 3EXP__ 1024 148623157e+308e-4932L"

Is this a simple case of __GNUC__ vs __GNUG__ ??

-benjamin

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-03-12 20:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-11 19:05 more pch questions Benjamin Kosnik
2003-03-11 19:29 ` Geoffrey Keating
2003-03-12  7:22   ` Benjamin Kosnik
2003-03-12  7:46     ` Gareth Pearce
2003-03-12 20:08     ` Geoff Keating
2003-03-12 20:09       ` Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2003-03-11  6:46 Benjamin Kosnik
2003-03-11 19:04 ` Geoffrey Keating

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).