diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-03-10 21:10:21 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-03-10 21:10:21 +0000 |
commit | 32810ba3df092f3890cb115a162a82afec947966 (patch) | |
tree | 509adfec9084d01a3ea73805d5209f71e8940bbd /gcc | |
parent | f90c544c3c709e86f1195e307627954637d68092 (diff) | |
download | gcc-32810ba3df092f3890cb115a162a82afec947966.zip gcc-32810ba3df092f3890cb115a162a82afec947966.tar.gz gcc-32810ba3df092f3890cb115a162a82afec947966.tar.bz2 |
re PR preprocessor/5899 (-M disables -dM)
PR preprocessor/5899
* cppinit.c (init_dependency_output): Don't ignore -dM etc.
From-SVN: r50545
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cppinit.c | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 53833dc..6d98f86 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk> + + PR preprocessor/5899 + * cppinit.c (init_dependency_output): Don't ignore -dM etc. + 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * mbchar.c (JIS_state_table, JIS_action_table): Const-ify. diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 3868167..7c7f782 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1881,15 +1881,13 @@ init_dependency_output (pfile) CPP_OPTION (pfile, print_deps_append) = 1; } else if (CPP_OPTION (pfile, deps_file) == 0) - /* If -M or -MM was seen, default output to wherever was specified - with -o. out_fname is non-NULL here. */ + /* If -M or -MM was seen without -MF, default output to wherever + was specified with -o. out_fname is non-NULL here. */ CPP_OPTION (pfile, deps_file) = CPP_OPTION (pfile, out_fname); - /* When doing dependencies, we should suppress all output, including - -dM, -dI etc. */ + /* When doing dependencies, suppress normal preprocessed output. + Still do -dM, -dI etc. as e.g. glibc depends on this. */ CPP_OPTION (pfile, no_output) = 1; - CPP_OPTION (pfile, dump_macros) = 0; - CPP_OPTION (pfile, dump_includes) = 0; } /* Handle --help output. */ |