diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-10 23:28:00 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-10 23:28:00 +0000 |
| commit | de2873b757b8b08f91d962ccf25726c9d668dc3b (patch) | |
| tree | 0227689a93ad08961b217abbf9f69ce04b58f163 /gcc/cppinit.c | |
| parent | 125c7a9dffd768a002367133c50301a6b7f6811d (diff) | |
| download | ppe42-gcc-de2873b757b8b08f91d962ccf25726c9d668dc3b.tar.gz ppe42-gcc-de2873b757b8b08f91d962ccf25726c9d668dc3b.zip | |
* Makefile.in (tradcpp0): Depend on mkdeps.h. Link mkdeps.o
* cppinit.c (cpp_start_read): Update comment, remove unneeded
if statement.
* tradcpp.c: Include mkdeps.h.
(deps, print_deps_phony_targets, deps_append, output_deps,
init_dependency_output, output_deps): New.
(deps_buffer, deps_allocated_size, deps_size, deps_column,
deps_output): Delete.
(print_deps_missing_files): Rename deps_missing_files.
(inhibit_output): Make global.
(main): Delete inhibit_output, deps_stream, deps_target.
Use mkdeps functionality in the same way as cpplib. Remove
-g3 handling. Handle -MF, -MP, -MQ, -MT. Update handling of
-M and -MM. Remove old handling of deps via deps_out, and
old reading of environment variables.
(get_filename): Update to use deps_add_dep.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38885 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
| -rw-r--r-- | gcc/cppinit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index fd6a4083c81..0a7fe489a5f 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -903,11 +903,11 @@ cpp_start_read (pfile, fname) if (CPP_OPTION (pfile, print_deps)) { - /* Set the default target (if there is none already). */ + /* Set the default target (if there is none already), and + the dependency on the main file. */ deps_add_default_target (pfile->deps, CPP_OPTION (pfile, in_fname)); - if (CPP_OPTION (pfile, in_fname)) - deps_add_dep (pfile->deps, CPP_OPTION (pfile, in_fname)); + deps_add_dep (pfile->deps, CPP_OPTION (pfile, in_fname)); } /* Open the main input file. This must be done early, so we have a @@ -943,6 +943,7 @@ cpp_start_read (pfile, fname) return 1; } +/* Use mkdeps.c to output dependency information. */ static void output_deps (pfile) cpp_reader *pfile; |

