From 7855db7cb8238288a2f1e85864dc1ecac098ad38 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 24 Jan 2001 19:44:40 +0100 Subject: 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 --- gcc/tradcpp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/tradcpp.c') diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c index e5e0935..82de0bb 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--; -- cgit v1.1