aboutsummaryrefslogtreecommitdiff
path: root/gcc/cccp.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@cygnus.com>1999-03-02 10:41:07 +0000
committerNick Clifton <nickc@gcc.gnu.org>1999-03-02 10:41:07 +0000
commit4ed9f2126ddc0f9095b464d3f5b27401da11b5fb (patch)
treebb06c20a589bc9848c9103e56a5614092baed6a2 /gcc/cccp.c
parent4c112cda96594f4e4ada2cfeb3c9053725393fe6 (diff)
downloadgcc-4ed9f2126ddc0f9095b464d3f5b27401da11b5fb.zip
gcc-4ed9f2126ddc0f9095b464d3f5b27401da11b5fb.tar.gz
gcc-4ed9f2126ddc0f9095b464d3f5b27401da11b5fb.tar.bz2
Add ability to display omitted search directories.
From-SVN: r25539
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r--gcc/cccp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 7d39145..300915d 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -377,6 +377,7 @@ static struct default_include {
int cxx_aware; /* Includes in this directory don't need to
be wrapped in extern "C" when compiling
C++. */
+ int included; /* Set if the directory is acceptable. */
} include_defaults_array[]
#ifdef INCLUDE_DEFAULTS
= INCLUDE_DEFAULTS;
@@ -2018,6 +2019,7 @@ main (argc, argv)
append_include_chain (new, new);
if (first_system_include == 0)
first_system_include = new;
+ p->included = 1;
}
}
}
@@ -2033,6 +2035,7 @@ main (argc, argv)
append_include_chain (new, new);
if (first_system_include == 0)
first_system_include = new;
+ p->included = 1;
}
}
}
@@ -2059,6 +2062,14 @@ main (argc, argv)
fprintf (stderr, " %.*s\n", (int) strlen (p->fname) - 1, p->fname);
}
notice ("End of search list.\n");
+ {
+ struct default_include * d;
+ notice ("The following default directories have been omitted from the search path:\n");
+ for (d = include_defaults; d->fname; d++)
+ if (! d->included)
+ fprintf (stderr, " %s\n", d->fname);
+ notice ("End of omitted list.\n");
+ }
}
/* -MG doesn't select the form of output and must be specified with one of