From a85e064e4fabcac8ac400e40b5174edcb7b15aed Mon Sep 17 00:00:00 2001 From: geoffk Date: Fri, 16 May 2003 23:38:42 +0000 Subject: * doc/cppopts.texi (-undef): Fix texinfo warning. * doc/cppopts.texi (-H): Document that -H works for PCH files too. * cppfiles.c (validate_pch): When -H is used, print some information about PCH files found. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66894 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppfiles.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/cppfiles.c') diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 66865af2651..292026a6cce 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -293,6 +293,13 @@ validate_pch (pfile, filename, pchname) return NULL; if ((file->pch & 2) == 0) file->pch = pfile->cb.valid_pch (pfile, pchname, file->fd); + if (CPP_OPTION (pfile, print_include_names)) + { + unsigned int i; + for (i = 1; i < pfile->line_maps.depth; i++) + putc ('.', stderr); + fprintf (stderr, "%c %s\n", INCLUDE_PCH_P (file) ? '!' : 'x', pchname); + } if (INCLUDE_PCH_P (file)) { char *f = xstrdup (filename); -- cgit v1.2.3