aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.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/cppinit.c
parent6a40fc2b757192e84d11ce4edfac13b31a3b4397 (diff)
downloadgcc-7855db7cb8238288a2f1e85864dc1ecac098ad38.zip
gcc-7855db7cb8238288a2f1e85864dc1ecac098ad38.tar.gz
gcc-7855db7cb8238288a2f1e85864dc1ecac098ad38.tar.bz2
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/cppinit.c')
-rw-r--r--gcc/cppinit.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 93568f4..ff4cdb3 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -911,13 +911,8 @@ cpp_start_read (pfile, fname)
CPP_OPTION (pfile, out_fname) = "";
if (CPP_OPTION (pfile, print_deps))
- {
- /* 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));
-
- deps_add_dep (pfile->deps, CPP_OPTION (pfile, in_fname));
- }
+ /* Set the default target (if there is none already). */
+ deps_add_default_target (pfile->deps, CPP_OPTION (pfile, in_fname));
/* Open the main input file. This must be done early, so we have a
buffer to stand on. */