From patchwork Thu Sep 22 13:58:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 57903 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 232563857C40 for ; Thu, 22 Sep 2022 13:59:11 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id D34E93858400 for ; Thu, 22 Sep 2022 13:58:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D34E93858400 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D0E15219B7 for ; Thu, 22 Sep 2022 13:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1663855133; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7FCv5iZgIlzEXumSNzTixlDxdkyyI3MwT8kjYb+pT3M=; b=QcPplLLYTJK7GHkxo4YY3bHBEBfHDGii2/e0/SMNs7KaEBdn3Gh7YayRdPHgp6JGyVKv6q geMXVuJuuXi75MwSeg4MhAF+m9iGcWBs2AhaYHMSYRw5dmAyTvlkwsRCwb+9OUfNEN/1Hj a6LyI0oNeWLZxCaXGYDRh98tYl23C8c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1663855133; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7FCv5iZgIlzEXumSNzTixlDxdkyyI3MwT8kjYb+pT3M=; b=XhCWwMtk5na/HhYPMyWC38Ug7JPiofo7vMitT3eeJkeIkiXhv9EbhrKww98PqRbWFXQTsF ufz6Vkdu6UYBYPBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C359A13AA5 for ; Thu, 22 Sep 2022 13:58:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id n3maLh1qLGOQBgAAMHmgww (envelope-from ) for ; Thu, 22 Sep 2022 13:58:53 +0000 Message-ID: <744c4c66-b7cb-f99f-a63e-1cc58c291e96@suse.cz> Date: Thu, 22 Sep 2022 15:58:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] opts: fix --help=common with '\t' description To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Fixes -flto-compression option: - -flto-compression-level= Use z Use zlib/zstd compression level for IL. + -flto-compression-level=<0,19> Use zlib/zstd compression level for IL. Ready for master? Thanks, Martin --- 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= Use zlib/zstd compression level for IL. +Use zlib/zstd compression level 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,