mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-21 23:00:52 +08:00
Exclude CL_WARNING and CL_PARAM from --help=optimize.
2020-01-13 Martin Liska <mliska@suse.cz> * opts.c (print_help): Do not print CL_PARAM and CL_WARNING for CL_OPTIMIZATION.
This commit is contained in:
parent
fe7cc34fd5
commit
5ab08934e5
@ -1,3 +1,8 @@
|
||||
2020-01-13 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* opts.c (print_help): Do not print CL_PARAM
|
||||
and CL_WARNING for CL_OPTIMIZATION.
|
||||
|
||||
2020-01-13 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
PR driver/92757
|
||||
|
@ -2137,6 +2137,11 @@ print_help (struct gcc_options *opts, unsigned int lang_mask,
|
||||
a = comma + 1;
|
||||
}
|
||||
|
||||
/* We started using PerFunction/Optimization for parameters and
|
||||
a warning. We should exclude these from optimization options. */
|
||||
if (include_flags & CL_OPTIMIZATION)
|
||||
exclude_flags |= CL_WARNING | CL_PARAMS;
|
||||
|
||||
if (include_flags)
|
||||
print_specific_help (include_flags, exclude_flags, 0, opts,
|
||||
lang_mask);
|
||||
|
Loading…
x
Reference in New Issue
Block a user