summaryrefslogtreecommitdiff
path: root/gcc/tradcpp.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-01-24 19:44:40 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2001-01-24 19:44:40 +0100
commit7855db7cb8238288a2f1e85864dc1ecac098ad38 (patch)
treea8bb7305a5a82c84986b30d9aec74961e26639ee /gcc/tradcpp.c
parent6a40fc2b757192e84d11ce4edfac13b31a3b4397 (diff)
downloadgcc-7855db7cb8238288a2f1e85864dc1ecac098ad38.tar.gz
cppfiles.c (_cpp_read_file): Add to dependencies if requested.
* cppfiles.c (_cpp_read_file): Add to dependencies if requested. * cppinit.c (cpp_start_read): Remove deps_add_dep call. * tradcpp.c (main): Add -imacros or -include'd dependencies for -M*. * cpp.texi (-M, -MM): Document -M -include behaviour. From-SVN: r39240
Diffstat (limited to 'gcc/tradcpp.c')
-rw-r--r--gcc/tradcpp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c
index e5e0935b754..82de0bb7d69 100644
--- a/gcc/tradcpp.c
+++ b/gcc/tradcpp.c
@@ -848,6 +848,11 @@ main (argc, argv)
perror_with_name (pend[i].arg);
return FATAL_EXIT_CODE;
}
+
+ /* For -M, add this file to the dependencies. */
+ if (print_deps)
+ deps_add_dep (deps, pend[i].arg);
+
finclude (fd, pend[i].arg, &outbuf);
}
indepth--;