summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/file.c b/file.c
index 77e3e6a..f043e9c 100644
--- a/file.c
+++ b/file.c
@@ -392,6 +392,15 @@ remove_intermediates (int sig)
}
}
+/* Set the intermediate flag. */
+
+static void
+set_intermediate (const void *item)
+{
+ struct file *f = (struct file *) item;
+ f->intermediate = 1;
+}
+
/* For each dependency of each file, make the `struct dep' point
at the appropriate `struct file' (which may have to be created).
@@ -473,7 +482,10 @@ snap_deps (void)
f2->intermediate = f2->secondary = 1;
/* .SECONDARY with no deps listed marks *all* files that way. */
else
- all_secondary = 1;
+ {
+ all_secondary = 1;
+ hash_map (&files, set_intermediate);
+ }
}
f = lookup_file (".EXPORT_ALL_VARIABLES");