aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-incpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-incpath.c')
-rw-r--r--gcc/c-incpath.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/c-incpath.c b/gcc/c-incpath.c
index fe212fc03b0..77d7b913431 100644
--- a/gcc/c-incpath.c
+++ b/gcc/c-incpath.c
@@ -59,6 +59,16 @@ static struct cpp_dir *tails[4];
static bool quote_ignores_source_dir;
enum { REASON_QUIET = 0, REASON_NOENT, REASON_DUP, REASON_DUP_SYS };
+/* Reinitialize for next compile. */
+
+void
+reinit_incpath ()
+{
+ memset (heads, 0, sizeof (heads));
+ memset (tails, 0, sizeof (tails));
+ quote_ignores_source_dir = false;
+}
+
/* Free an element of the include chain, possibly giving a reason. */
static void
free_path (struct cpp_dir *path, int reason)