aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2003-05-16 23:38:42 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2003-05-16 23:38:42 +0000
commit79406520e945ecace14f56e3af4b88936153649c (patch)
treebc71e2796f057f96769ec1dcfec8dca0b592c95c
parent72701eabe7b06cba4b4905bb4116ea1be54909f5 (diff)
downloadgcc-79406520e945ecace14f56e3af4b88936153649c.zip
gcc-79406520e945ecace14f56e3af4b88936153649c.tar.gz
gcc-79406520e945ecace14f56e3af4b88936153649c.tar.bz2
cppopts.texi (-undef): Fix texinfo warning.
* 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. From-SVN: r66894
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/cppfiles.c7
-rw-r--r--gcc/doc/cppopts.texi6
3 files changed, 19 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ce2dbef..73f772a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2003-05-16 Geoffrey Keating <geoffk@apple.com>
+
+ * 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.
+
2003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index 66865af2..292026a 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);
diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi
index 4c98c32..27530c7 100644
--- a/gcc/doc/cppopts.texi
+++ b/gcc/doc/cppopts.texi
@@ -43,7 +43,7 @@ provided with a @option{-D} option.
Do not predefine any system-specific or GCC-specific macros. The
standard predefined macros remain defined.
@ifset cppmanual
-@xref{Standard Predefined Macros}
+@xref{Standard Predefined Macros}.
@end ifset
@item -I @var{dir}
@@ -636,7 +636,9 @@ execution, and report the final form of the include path.
@opindex H
Print the name of each header file used, in addition to other normal
activities. Each name is indented to show how deep in the
-@samp{#include} stack it is.
+@samp{#include} stack it is. Precompiled header files are also
+printed, even if they are found to be invalid; an invalid precompiled
+header file is printed with @samp{...x} and a valid one with @samp{...!} .
@item -version
@itemx --version