aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-01-13 14:27:09 +0100
committerMartin Liska <mliska@suse.cz>2020-01-13 14:27:09 +0100
commit5ab08934e5f44dbdd5b0e4226755b46bf4e2e1af (patch)
tree122221218d8d49a5c4a26d788e5149452f004de1 /gcc/opts.c
parentfe7cc34fd5186cce3771e2bce2f4aacb81b9058c (diff)
downloadgcc-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index fa4804c..33a662b 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -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);