Message ID | 44ab2b97-f77c-ae8b-c701-593839c99197@suse.cz |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846496wrn; Fri, 27 Jan 2023 06:00:13 -0800 (PST) X-Google-Smtp-Source: AK7set/IAOG+1Um3rop6mU4Bk8P7TOtyYQ8plGiO7zp4z78ajGkQRhEIMuA2f2UCZwGK5xl3sXRS X-Received: by 2002:a17:906:7ccf:b0:878:4cb8:3b2e with SMTP id h15-20020a1709067ccf00b008784cb83b2emr7610845ejp.16.1674828013377; Fri, 27 Jan 2023 06:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828013; cv=none; d=google.com; s=arc-20160816; b=qy/QKAvwlKCOhm/SwaiKCZQsNOIyHPXSjeFnDFXI/r7NWr2XsYx6d+pPGLhyMskSA3 lqp68LjrfvfEoZvwChw2UerUpyTeCPif4s+8eMulkKMx85Qqw64vEIZq7Goq+A+lIlsz q/EeODVs3sTyVo0aUtj1RPevOaSxAD8Gky6vc9zspCO8d7vdVOV5Zssl7lii8rOBfFbM mPP7rQf5WXzFNTx0IJC5XKI09kCWZ63OEiQDBG9UtEkwdKkrkG0sXTxzS6Tr/0D/4yxF sYBoeBhzPbI768zLfKAAjVmuxtAIGbxX2WVH9+Zf7YUibiXIXJZ8qMXun1xLryU/iBpf LjyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding:cc :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=uH4obIW/dVeszc6jaA6sVUryo8ua08q1Owgfzp6nUtY=; b=eAhaWnjIIJ8nKU2wrSEViZN7yBSF3umBuIwK49utgqYWsh4nIHCzUuO7gq77Uub71A zpzmmzDkArD8PrxrsLRm/LVqhAVg5NK1YvmUDfb3McQJw7bCL/hGJmak2XROUca9cCZ6 JnaGipBb23E+Qm1bgxkGyeU809STI6bK1gUdhd3hk2FegxT8i9BmDxO1HN9GLjQfFDMT NEHmYoaKhgY+HsDuMhwUTKtoO5kUuVf4gj8BnfYvkRCLQr6vyd01FXSPCXuDbNU7yIbi dFtirNirxH4KJOMtzdBmtGqopJFkO/Ieq+N7bUDRUXpxqL8RYcnj1M2pD3H12zm7BTJC QFHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=dmcV35yl; dkim=neutral (no key) header.i=@gcc.gnu.org header.s=susede2_ed25519 header.b=zBwdBmW2; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bt15-20020a0564020a4f00b0048e927edec3si4487487edb.272.2023.01.27.06.00.13 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:00:13 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=dmcV35yl; dkim=neutral (no key) header.i=@gcc.gnu.org header.s=susede2_ed25519 header.b=zBwdBmW2; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 45646385B50C for <ouuuleilei@gmail.com>; Fri, 27 Jan 2023 14:00:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 962CF3858C00 for <gcc-patches@gcc.gnu.org>; Fri, 27 Jan 2023 13:59:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 962CF3858C00 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-out2.suse.de (Postfix) with ESMTPS id 72E9E20224; Fri, 27 Jan 2023 13:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1674827983; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uH4obIW/dVeszc6jaA6sVUryo8ua08q1Owgfzp6nUtY=; b=dmcV35yl3i+9HeSP2qv1Wty+jOb9OoKliU6h6+fmxN/kC5Z5rT0bnOLUWYXWXMgVeHDad8 KYgNeuhxfhekLt6DlVvXS0FWg5fn9Cx31C/aTl5bONhaVYA5Dclxt6Z40lGMbmsB5mKOsY rkVL6ov4Z6ry105U8pUkdl9HQ/LSbzQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1674827983; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uH4obIW/dVeszc6jaA6sVUryo8ua08q1Owgfzp6nUtY=; b=zBwdBmW2UypwfdxD2SadA8S7J/I78o9kN9EbaqwWeWM01aynR+Ud45F4o+cNvgZq8VbecY 5j72mqKSkf+7HRBA== 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 62110138E3; Fri, 27 Jan 2023 13:59:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Yk4cF8/Y02OCNAAAMHmgww (envelope-from <mliska@suse.cz>); Fri, 27 Jan 2023 13:59:43 +0000 Message-ID: <44ab2b97-f77c-ae8b-c701-593839c99197@suse.cz> Date: Fri, 27 Jan 2023 14:59:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 From: =?utf-8?q?Martin_Li=C5=A1ka?= <mliska@suse.cz> Subject: [PATCH] driver: fix -gz=none error message with missing zstd To: gcc-patches@gcc.gnu.org Content-Language: en-US Cc: Mark Wielaard <mark@klomp.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.8 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184458727306403?= X-GMAIL-MSGID: =?utf-8?q?1756184458727306403?= |
Series |
driver: fix -gz=none error message with missing zstd
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Martin Liška
Jan. 27, 2023, 1:59 p.m. UTC
We wrongly report: $ echo "int main () {}" | gcc -xc -gz=none - gcc: error: -gz=zstd is not supported in this configuration if zstd compression is not supported by binutils. We should emit the error message only if -gz=zstd. PR driver/108572 Ready to be installed? Thanks, Martin gcc/ChangeLog: * gcc.cc (LINK_COMPRESS_DEBUG_SPEC): Report error only for -gz=zstd. --- gcc/gcc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, 27 Jan 2023, Martin Liška wrote: > We wrongly report: > > $ echo "int main () {}" | gcc -xc -gz=none - > gcc: error: -gz=zstd is not supported in this configuration > > if zstd compression is not supported by binutils. We should emit the > error message only if -gz=zstd. > > PR driver/108572 > > Ready to be installed? > Thanks, > Martin > > gcc/ChangeLog: > > * gcc.cc (LINK_COMPRESS_DEBUG_SPEC): Report error only for > -gz=zstd. OK.
diff --git a/gcc/gcc.cc b/gcc/gcc.cc index d8130024a8c..becc56051a8 100644 --- a/gcc/gcc.cc +++ b/gcc/gcc.cc @@ -842,7 +842,7 @@ proper position among the other output files. */ #define LINK_COMPRESS_DEBUG_SPEC \ " %{gz|gz=zlib:" LD_COMPRESS_DEBUG_OPTION "=zlib}" \ " %{gz=none:" LD_COMPRESS_DEBUG_OPTION "=none}" \ - " %{gz*:%e-gz=zstd is not supported in this configuration} " \ + " %{gz=zstd:%e-gz=zstd is not supported in this configuration} " \ " %{gz=zlib-gnu:}" /* Ignore silently zlib-gnu option value. */ #elif HAVE_LD_COMPRESS_DEBUG == 2 /* ELF gABI style and ZSTD. */