aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-07-29 14:40:45 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-07-29 14:40:45 +0000
commitdf07e07d1a0f83cc18efc5f901dfd4fb262d538a (patch)
tree1d1e3b28b0edb3a1bf0166c1b548080361cf1fed /gcc/cppinit.c
parent7729617cf8cee0d354cd9c44e4ffc0f0de899b5d (diff)
downloadgcc-df07e07d1a0f83cc18efc5f901dfd4fb262d538a.zip
gcc-df07e07d1a0f83cc18efc5f901dfd4fb262d538a.tar.gz
gcc-df07e07d1a0f83cc18efc5f901dfd4fb262d538a.tar.bz2
re PR preprocessor/3669 (-M -g3 outputs macros as well as dependency info)
PR preprocessor/3669 * cppinit.c (init_dependency_output): Turn off dump requests if sending dependencies to stdout. From-SVN: r44457
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 0aac625..9f2b9f7 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -1765,12 +1765,14 @@ init_dependency_output (pfile)
}
/* If dependencies go to standard output, or -MG is used, we should
- suppress output. The user may be requesting other stuff to
- stdout, with -dM, -v etc. We let them shoot themselves in the
- foot. */
+ suppress output, including -dM, -dI etc. */
if (CPP_OPTION (pfile, deps_file) == 0
|| CPP_OPTION (pfile, print_deps_missing_files))
- CPP_OPTION (pfile, no_output) = 1;
+ {
+ CPP_OPTION (pfile, no_output) = 1;
+ CPP_OPTION (pfile, dump_macros) = 0;
+ CPP_OPTION (pfile, dump_includes) = 0;
+ }
}
static void