aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-01-27 11:00:53 +0100
committerMartin Liska <mliska@suse.cz>2020-01-27 11:00:53 +0100
commit10fe5cbe0047478b030c13c8537ef5bc752a2048 (patch)
tree1cdb07a3b1d18a4d1a2fa2b9de23f850baea01a6 /gcc/opts.c
parentc2bd2b4664be8b73f8fd58a64dec1e93871797cc (diff)
downloadgcc-10fe5cbe0047478b030c13c8537ef5bc752a2048.zip
gcc-10fe5cbe0047478b030c13c8537ef5bc752a2048.tar.gz
gcc-10fe5cbe0047478b030c13c8537ef5bc752a2048.tar.bz2
Do not print params in --help except --help=param.
* opts.c (print_help): Exclude params from all except --help=param.
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 33a662b..3b2cc85 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -2140,7 +2140,9 @@ print_help (struct gcc_options *opts, unsigned int lang_mask,
/* 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;
+ exclude_flags |= CL_WARNING;
+ if (!(include_flags & CL_PARAMS))
+ exclude_flags |= CL_PARAMS;
if (include_flags)
print_specific_help (include_flags, exclude_flags, 0, opts,