Commit 7521b913 by Jeffrey Oldham Committed by Jeffrey D. Oldham

gcc.c (cc1_options): Add "-param".

2001-02-21  Jeffrey Oldham  <oldham@codesourcery.com>

	* gcc.c (cc1_options): Add "-param".
	(DEFAULT_WORD_SWITCH_TAKES_ARG): Likewise.
	(option_map): Likewise.
	* toplev.c (display_help): Add entry for "--param".
	(independent_decode_option): Fix typographical error.

From-SVN: r39958
parent 3d71e6ce
2001-02-21 Jeffrey Oldham <oldham@codesourcery.com>
* gcc.c (cc1_options): Add "-param".
(DEFAULT_WORD_SWITCH_TAKES_ARG): Likewise.
(option_map): Likewise.
* toplev.c (display_help): Add entry for "--param".
(independent_decode_option): Fix typographical error.
Wed Feb 21 18:57:28 CET 2001 Catherine Moore <clm@redhat.com> Wed Feb 21 18:57:28 CET 2001 Catherine Moore <clm@redhat.com>
Bernd Schmidt <bernds@redhat.com> Bernd Schmidt <bernds@redhat.com>
Jan Hubicka <jh@suse.cz> Jan Hubicka <jh@suse.cz>
......
...@@ -619,7 +619,7 @@ static const char *cc1_options = ...@@ -619,7 +619,7 @@ static const char *cc1_options =
%{aux-info*} %{Qn:-fno-ident} %{--help:--help}\ %{aux-info*} %{Qn:-fno-ident} %{--help:--help}\
%{--target-help:--target-help}\ %{--target-help:--target-help}\
%{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\ %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\
%{fsyntax-only:-o %j}"; %{fsyntax-only:-o %j} %{-param*}";
static const char *asm_options = static const char *asm_options =
"%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}"; "%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}";
...@@ -674,7 +674,8 @@ static struct user_specs *user_specs_head, *user_specs_tail; ...@@ -674,7 +674,8 @@ static struct user_specs *user_specs_head, *user_specs_tail;
|| !strcmp (STR, "imacros") || !strcmp (STR, "aux-info") \ || !strcmp (STR, "imacros") || !strcmp (STR, "aux-info") \
|| !strcmp (STR, "idirafter") || !strcmp (STR, "iprefix") \ || !strcmp (STR, "idirafter") || !strcmp (STR, "iprefix") \
|| !strcmp (STR, "iwithprefix") || !strcmp (STR, "iwithprefixbefore") \ || !strcmp (STR, "iwithprefix") || !strcmp (STR, "iwithprefixbefore") \
|| !strcmp (STR, "isystem") || !strcmp (STR, "specs") \ || !strcmp (STR, "isystem") || !strcmp (STR, "-param") \
|| !strcmp (STR, "specs") \
|| !strcmp (STR, "MF") || !strcmp (STR, "MT") || !strcmp (STR, "MQ")) || !strcmp (STR, "MF") || !strcmp (STR, "MT") || !strcmp (STR, "MQ"))
#ifndef WORD_SWITCH_TAKES_ARG #ifndef WORD_SWITCH_TAKES_ARG
...@@ -863,6 +864,7 @@ struct option_map option_map[] = ...@@ -863,6 +864,7 @@ struct option_map option_map[] =
{"--optimize", "-O", "oj"}, {"--optimize", "-O", "oj"},
{"--output", "-o", "a"}, {"--output", "-o", "a"},
{"--output-class-directory", "-foutput-class-dir=", "ja"}, {"--output-class-directory", "-foutput-class-dir=", "ja"},
{"--param", "--param", "a"},
{"--pedantic", "-pedantic", 0}, {"--pedantic", "-pedantic", 0},
{"--pedantic-errors", "-pedantic-errors", 0}, {"--pedantic-errors", "-pedantic-errors", 0},
{"--pipe", "-pipe", 0}, {"--pipe", "-pipe", 0},
...@@ -2920,9 +2922,9 @@ display_help () ...@@ -2920,9 +2922,9 @@ display_help ()
"), stdout); "), stdout);
printf (_("\ printf (_("\
\nOptions starting with -g, -f, -m, -O or -W are automatically passed on to\n\ \nOptions starting with -g, -f, -m, -O, -W, or --param are automatically\n\
the various sub-processes invoked by %s. In order to pass other options\n\ passed on to the various sub-processes invoked by %s. In order to pass\n\
on to these processes the -W<letter> options must be used.\n\ other options on to these processes the -W<letter> options must be used.\n\
"), programname); "), programname);
/* The rest of the options are displayed by invocations of the various /* The rest of the options are displayed by invocations of the various
......
...@@ -3839,6 +3839,7 @@ display_help () ...@@ -3839,6 +3839,7 @@ display_help ()
printf (_(" -O[number] Set optimisation level to [number]\n")); printf (_(" -O[number] Set optimisation level to [number]\n"));
printf (_(" -Os Optimise for space rather than speed\n")); printf (_(" -Os Optimise for space rather than speed\n"));
printf (_(" --param <name>=<value> Set constant controlling optimization\n"));
printf (_(" -pedantic Issue warnings needed by strict compliance to ISO C\n")); printf (_(" -pedantic Issue warnings needed by strict compliance to ISO C\n"));
printf (_(" -pedantic-errors Like -pedantic except that errors are produced\n")); printf (_(" -pedantic-errors Like -pedantic except that errors are produced\n"));
printf (_(" -w Suppress warnings\n")); printf (_(" -w Suppress warnings\n"));
...@@ -4390,7 +4391,7 @@ independent_decode_option (argc, argv) ...@@ -4390,7 +4391,7 @@ independent_decode_option (argc, argv)
return 1; return 1;
} }
/* Get the '<name>=<value' parameter. */ /* Get the '<name>=<value>' parameter. */
arg = argv[1]; arg = argv[1];
/* Look for the `='. */ /* Look for the `='. */
equal = strchr (arg, '='); equal = strchr (arg, '=');
......
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