diff options
author | Martin Liska <mliska@suse.cz> | 2020-01-13 14:27:09 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-01-13 14:27:09 +0100 |
commit | 5ab08934e5f44dbdd5b0e4226755b46bf4e2e1af (patch) | |
tree | 122221218d8d49a5c4a26d788e5149452f004de1 /gcc/opts.c | |
parent | fe7cc34fd5186cce3771e2bce2f4aacb81b9058c (diff) | |
download | gcc-5ab08934e5f44dbdd5b0e4226755b46bf4e2e1af.zip gcc-5ab08934e5f44dbdd5b0e4226755b46bf4e2e1af.tar.gz gcc-5ab08934e5f44dbdd5b0e4226755b46bf4e2e1af.tar.bz2 |
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.
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |