summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-03-16 14:03:36 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-03-16 14:03:36 +0000
commitb3124fac9bd98d0644ce645f513b354954b20c77 (patch)
treeec063efe9f5d39368cdd0b96f0fe46d5ba5a639b
parent121449b69b51f271ae5d7accde14e72099342d02 (diff)
downloadgcc-b3124fac9bd98d0644ce645f513b354954b20c77.tar.gz
* cppinit.c: Revert -MD removal.
From-SVN: r50884
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cppinit.c17
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 36c51fec261..b15919c7723 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * cppinit.c: Revert -MD removal.
+
2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index bac60144575..ae9416e8ade 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -1175,9 +1175,11 @@ new_pending_directive (pend, text, handler)
DEF_OPT("H", 0, OPT_H) \
DEF_OPT("I", no_dir, OPT_I) \
DEF_OPT("M", 0, OPT_M) \
+ DEF_OPT("MD", no_fil, OPT_MD) \
DEF_OPT("MF", no_fil, OPT_MF) \
DEF_OPT("MG", 0, OPT_MG) \
DEF_OPT("MM", 0, OPT_MM) \
+ DEF_OPT("MMD", no_fil, OPT_MMD) \
DEF_OPT("MP", 0, OPT_MP) \
DEF_OPT("MQ", no_tgt, OPT_MQ) \
DEF_OPT("MT", no_tgt, OPT_MT) \
@@ -1587,6 +1589,21 @@ cpp_handle_option (pfile, argc, argv, ignore)
deps_add_target (pfile->deps, arg, opt_code == OPT_MQ);
break;
+ /* -MD and -MMD for cpp0 are deprecated and undocumented
+ (use -M or -MM with -MF instead), and probably should be
+ removed with the next major GCC version. For the moment
+ we allow these for the benefit of Automake 1.4, which
+ uses these when dependency tracking is enabled. Automake
+ 1.5 will fix this. */
+ case OPT_MD:
+ CPP_OPTION (pfile, print_deps) = 2;
+ CPP_OPTION (pfile, deps_file) = arg;
+ break;
+ case OPT_MMD:
+ CPP_OPTION (pfile, print_deps) = 1;
+ CPP_OPTION (pfile, deps_file) = arg;
+ break;
+
case OPT_A:
if (arg[0] == '-')
{