Commit 576786b0 by Neil Booth Committed by Neil Booth

cppinit.c (print_help): Display -MD and -MMD.

	* cppinit.c (print_help): Display -MD and -MMD.
	Don't display usage string.  Update assertion syntax and
	typo.
	(COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
	(cpp_handle_option): Update.

From-SVN: r50874
parent be09037b
2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
* cppinit.c (print_help): Display -MD and -MMD.
Don't display usage string. Update assertion syntax and
typo.
(COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
(cpp_handle_option): Update.
2002-03-15 Chris Demetriou <cgd@broadcom.com> 2002-03-15 Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
......
...@@ -1175,11 +1175,9 @@ new_pending_directive (pend, text, handler) ...@@ -1175,11 +1175,9 @@ new_pending_directive (pend, text, handler)
DEF_OPT("H", 0, OPT_H) \ DEF_OPT("H", 0, OPT_H) \
DEF_OPT("I", no_dir, OPT_I) \ DEF_OPT("I", no_dir, OPT_I) \
DEF_OPT("M", 0, OPT_M) \ DEF_OPT("M", 0, OPT_M) \
DEF_OPT("MD", no_fil, OPT_MD) \
DEF_OPT("MF", no_fil, OPT_MF) \ DEF_OPT("MF", no_fil, OPT_MF) \
DEF_OPT("MG", 0, OPT_MG) \ DEF_OPT("MG", 0, OPT_MG) \
DEF_OPT("MM", 0, OPT_MM) \ DEF_OPT("MM", 0, OPT_MM) \
DEF_OPT("MMD", no_fil, OPT_MMD) \
DEF_OPT("MP", 0, OPT_MP) \ DEF_OPT("MP", 0, OPT_MP) \
DEF_OPT("MQ", no_tgt, OPT_MQ) \ DEF_OPT("MQ", no_tgt, OPT_MQ) \
DEF_OPT("MT", no_tgt, OPT_MT) \ DEF_OPT("MT", no_tgt, OPT_MT) \
...@@ -1589,21 +1587,6 @@ cpp_handle_option (pfile, argc, argv, ignore) ...@@ -1589,21 +1587,6 @@ cpp_handle_option (pfile, argc, argv, ignore)
deps_add_target (pfile->deps, arg, opt_code == OPT_MQ); deps_add_target (pfile->deps, arg, opt_code == OPT_MQ);
break; 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: case OPT_A:
if (arg[0] == '-') if (arg[0] == '-')
{ {
...@@ -1894,7 +1877,6 @@ init_dependency_output (pfile) ...@@ -1894,7 +1877,6 @@ init_dependency_output (pfile)
static void static void
print_help () print_help ()
{ {
fprintf (stderr, _("Usage: %s [switches] input output\n"), progname);
/* To keep the lines from getting too long for some compilers, limit /* To keep the lines from getting too long for some compilers, limit
to about 500 characters (6 lines) per chunk. */ to about 500 characters (6 lines) per chunk. */
fputs (_("\ fputs (_("\
...@@ -1957,6 +1939,8 @@ Switches:\n\ ...@@ -1957,6 +1939,8 @@ Switches:\n\
fputs (_("\ fputs (_("\
-M Generate make dependencies\n\ -M Generate make dependencies\n\
-MM As -M, but ignore system header files\n\ -MM As -M, but ignore system header files\n\
-MD Generate make dependencies and compile\n\
-MMD As -MD, but ignore system header files\n\
-MF <file> Write dependency output to the given file\n\ -MF <file> Write dependency output to the given file\n\
-MG Treat missing header file as generated files\n\ -MG Treat missing header file as generated files\n\
"), stdout); "), stdout);
...@@ -1968,8 +1952,8 @@ Switches:\n\ ...@@ -1968,8 +1952,8 @@ Switches:\n\
fputs (_("\ fputs (_("\
-D<macro> Define a <macro> with string '1' as its value\n\ -D<macro> Define a <macro> with string '1' as its value\n\
-D<macro>=<val> Define a <macro> with <val> as its value\n\ -D<macro>=<val> Define a <macro> with <val> as its value\n\
-A<question> (<answer>) Assert the <answer> to <question>\n\ -A<question>=<answer> Assert the <answer> to <question>\n\
-A-<question> (<answer>) Disable the <answer> to <question>\n\ -A-<question>=<answer> Disable the <answer> to <question>\n\
-U<macro> Undefine <macro> \n\ -U<macro> Undefine <macro> \n\
-v Display the version number\n\ -v Display the version number\n\
"), stdout); "), stdout);
...@@ -1986,7 +1970,7 @@ Switches:\n\ ...@@ -1986,7 +1970,7 @@ Switches:\n\
-ftabstop=<number> Distance between tab stops for column reporting\n\ -ftabstop=<number> Distance between tab stops for column reporting\n\
-P Do not generate #line directives\n\ -P Do not generate #line directives\n\
-$ Do not allow '$' in identifiers\n\ -$ Do not allow '$' in identifiers\n\
-remap Remap file names when including files.\n\ -remap Remap file names when including files\n\
--version Display version information\n\ --version Display version information\n\
-h or --help Display this information\n\ -h or --help Display this information\n\
"), stdout); "), stdout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment