public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2807] opts: fix --help=common with '\t' description
@ 2022-09-23 7:56 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-09-23 7:56 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:651625728520b5e1d926f0e12018c96f3fe18b22
commit r13-2807-g651625728520b5e1d926f0e12018c96f3fe18b22
Author: Martin Liska <mliska@suse.cz>
Date: Thu Sep 22 15:57:48 2022 +0200
opts: fix --help=common with '\t' description
Fixes -flto-compression option:
- -flto-compression-level=<number> Use z Use zlib/zstd compression level <number> for IL.
+ -flto-compression-level=<0,19> Use zlib/zstd compression level <number> for IL.
gcc/ChangeLog:
* common.opt: Update -flto-compression-level documentation.
* opts.cc (print_filtered_help): Do not append range to an
option that uses \t syntax.
Diff:
---
gcc/common.opt | 2 +-
gcc/opts.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/common.opt b/gcc/common.opt
index 06ef768ab78..296d6f194bf 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2106,7 +2106,7 @@ Specify the algorithm to partition symbols and vars at linktime.
; The initial value of -1 comes from Z_DEFAULT_COMPRESSION in zlib.h.
flto-compression-level=
Common Joined RejectNegative UInteger Var(flag_lto_compression_level) Init(-1) IntegerRange(0, 19)
--flto-compression-level=<number> Use zlib/zstd compression level <number> for IL.
+Use zlib/zstd compression level <number> for IL.
flto-odr-type-merging
Common Ignore
diff --git a/gcc/opts.cc b/gcc/opts.cc
index e058aaf3697..eb5db01de17 100644
--- a/gcc/opts.cc
+++ b/gcc/opts.cc
@@ -1801,7 +1801,7 @@ print_filtered_help (unsigned int include_flags,
help = new_help;
}
- if (option->range_max != -1)
+ if (option->range_max != -1 && tab == NULL)
{
char b[128];
snprintf (b, sizeof (b), "<%d,%d>", option->range_min,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-23 7:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-23 7:56 [gcc r13-2807] opts: fix --help=common with '\t' description Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).