aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-08-06 08:24:14 +0000
committerRichard Stallman <rms@gnu.org>1993-08-06 08:24:14 +0000
commite6157ab48fca5f720b270566629a49d1553c9da1 (patch)
tree363e4066677834723ebee134bb6660b24e63f4d1
parentd3ab975391c98188899c1519703af44995d47c53 (diff)
downloadgcc-e6157ab48fca5f720b270566629a49d1553c9da1.zip
gcc-e6157ab48fca5f720b270566629a49d1553c9da1.tar.gz
gcc-e6157ab48fca5f720b270566629a49d1553c9da1.tar.bz2
(main): If -v, print header search dir list.
From-SVN: r5087
-rw-r--r--gcc/cccp.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 259494a..02035e4 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -998,6 +998,8 @@ main (argc, argv)
/* Non-0 means don't output the preprocessed program. */
int inhibit_output = 0;
+ /* Non-0 means -v, so print the full set of include dirs. */
+ int verbose = 0;
/* File name which deps are being written to.
This is 0 if deps are being written to stdout. */
@@ -1329,6 +1331,7 @@ main (argc, argv)
TARGET_VERSION;
#endif
fprintf (stderr, "\n");
+ verbose = 1;
break;
case 'H':
@@ -1704,6 +1707,18 @@ main (argc, argv)
if (first_system_include == 0)
first_system_include = after_include;
+ /* With -v, print the list of dirs to search. */
+ if (verbose) {
+ struct file_name_list *p;
+ fprintf (stderr, "#include \"...\" search starts here:\n");
+ for (p = include; p; p = p->next) {
+ if (p == first_bracket_include)
+ fprintf (stderr, "#include <...> search starts here:\n");
+ fprintf (stderr, " %s\n", p->fname);
+ }
+ fprintf (stderr, "End of search list.\n");
+ }
+
/* Scan the -imacros files before the main input.
Much like #including them, but with no_output set
so that only their macro definitions matter. */