diff options
author | Martin Liska <mliska@suse.cz> | 2019-11-12 11:07:37 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-11-12 10:07:37 +0000 |
commit | 76c26af90ea3af7487e701e451a4591a81727e8a (patch) | |
tree | f06db17114922ff30c4c817dbb00a5852f3b043e /gcc/opts.c | |
parent | 62aee289e4791fd68aace01accf433fb26b3eeae (diff) | |
download | gcc-76c26af90ea3af7487e701e451a4591a81727e8a.zip gcc-76c26af90ea3af7487e701e451a4591a81727e8a.tar.gz gcc-76c26af90ea3af7487e701e451a4591a81727e8a.tar.bz2 |
Param to options conversion.
2019-11-12 Martin Liska <mliska@suse.cz>
* common.opt: Remove --param and --param= options.
* opt-functions.awk: Mark CL_PARAMS for options
that have Param keyword.
* opts-common.c (decode_cmdline_options_to_array):
Replace --param key=value with --param=key=value.
* opts.c (print_filtered_help): Remove special
printing of params.
(print_specific_help): Update title for params.
(common_handle_option): Do not handle OPT__param.
opts.h (SET_OPTION_IF_UNSET): New macro.
* doc/options.texi: Document Param keyword.
From-SVN: r278083
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 38 |
1 files changed, 1 insertions, 37 deletions
@@ -1278,38 +1278,6 @@ print_filtered_help (unsigned int include_flags, bool displayed = false; char new_help[256]; - if (include_flags == CL_PARAMS) - { - for (i = 0; i < LAST_PARAM; i++) - { - const char *param = compiler_params[i].option; - - help = compiler_params[i].help; - if (help == NULL || *help == '\0') - { - if (exclude_flags & CL_UNDOCUMENTED) - continue; - help = undocumented_msg; - } - - /* Get the translation. */ - help = _(help); - - if (!opts->x_quiet_flag) - { - snprintf (new_help, sizeof (new_help), - _("default %d minimum %d maximum %d"), - compiler_params[i].default_value, - compiler_params[i].min_value, - compiler_params[i].max_value); - help = new_help; - } - wrap_help (help, param, strlen (param), columns); - } - putchar ('\n'); - return; - } - if (!opts->x_help_printed) opts->x_help_printed = XCNEWVAR (char, cl_options_count); @@ -1679,7 +1647,7 @@ print_specific_help (unsigned int include_flags, description = _("The following options are language-independent"); break; case CL_PARAMS: - description = _("The --param option recognizes the following as parameters"); + description = _("The following options control parameters"); break; default: if (i >= cl_lang_count) @@ -2241,10 +2209,6 @@ common_handle_option (struct gcc_options *opts, switch (code) { - case OPT__param: - handle_param (opts, opts_set, loc, arg); - break; - case OPT__help: { unsigned int all_langs_mask = (1U << cl_lang_count) - 1; |