OSDN Git Service

* cppfiles.c (_cpp_read_file): Add to dependencies if requested.
[pf3gnuchains/gcc-fork.git] / gcc / tradcpp.c
index e5e0935..82de0bb 100644 (file)
@@ -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--;