Do not print params in --help except --help=param.
authorMartin Liska <mliska@suse.cz>
Mon, 27 Jan 2020 10:00:53 +0000 (11:00 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 27 Jan 2020 10:00:53 +0000 (11:00 +0100)
* opts.c (print_help): Exclude params from
all except --help=param.

gcc/ChangeLog
gcc/opts.c

index 59806baa7574784301e97e5319efd2ced189995b..4fc5dcd527e5c79df92b5c919497bd32b7d8c380 100644 (file)
@@ -1,3 +1,8 @@
+2020-01-27  Martin Liska  <mliska@suse.cz>
+
+       * opts.c (print_help): Exclude params from
+       all except --help=param.
+
 2020-01-27  Martin Liska  <mliska@suse.cz>
 
        PR target/93274
index 33a662b54f5b08cfa873f38e9004f36cad9fae89..3b2cc854af1581dfe8e996c13b3717adbf6a0a9c 100644 (file)
@@ -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,