Filter out language specific options from --help=common.

	PR driver/91220
	* opts.c (print_filtered_help): Exclude language-specific
	options from --help=common unless enabled in all FEs.
parent 10fe5cbe
2020-01-27 Martin Liska <mliska@suse.cz>
PR driver/91220
* opts.c (print_filtered_help): Exclude language-specific
options from --help=common unless enabled in all FEs.
2020-01-27 Martin Liska <mliska@suse.cz>
* opts.c (print_help): Exclude params from
all except --help=param.
......
......@@ -1285,6 +1285,14 @@ print_filtered_help (unsigned int include_flags,
| CL_COMMON | CL_TARGET)) == 0)
continue;
/* If an option contains a language specification,
exclude it from common unless all languages are present. */
if ((include_flags & CL_COMMON)
&& !(option->flags & CL_DRIVER)
&& (option->flags & CL_LANG_ALL)
&& (option->flags & CL_LANG_ALL) != CL_LANG_ALL)
continue;
found = true;
/* Skip switches that have already been printed. */
if (opts->x_help_printed[i])
......
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