From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [IPv6:2001:a60:0:28:0:1:25:1]) by sourceware.org (Postfix) with ESMTPS id B5B043858403 for ; Sun, 21 Jan 2024 23:29:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B5B043858403 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B5B043858403 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:a60:0:28:0:1:25:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705879789; cv=none; b=xDYkGaiC4IK27I11/y57/AgZuA31HmUMHkgBvE8NB1DEhcTG5ltjD1dYEl9x2Tm+91wMA6FA0F5pHMODYM7cf4kD3IO1FcthfJ8HHkuRZblAMTPJkcE4VFttbWg7klc1dm/22kSTBJF9BTjZVhNo83Fa9qvyBkM9zwut9IxTY3Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705879789; c=relaxed/simple; bh=Jxm2COzXXlj2r1FUfiQMJyqZZ7E7tLiaeTb+aEYT8eI=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=TLmOuYnHrCpw95t+u/feGl87TrI2A/O1ES9rYsfbex9YaetJYw4tkZCXUvhr4/FUO74IK918H2rBuXkK6pcdL23ZtBTS/wQ9YgXLpw/6x2lUDkkRvGLjOYNvWd46DeJtfBDX4aZiPX22RQbRP7K83hn78902aPyTxOS3uTib6x0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4TJ8hT0KzWz1syCh; Mon, 22 Jan 2024 00:29:44 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4TJ8hS3ypzz1qqlS; Mon, 22 Jan 2024 00:29:44 +0100 (CET) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id 7jCjoL9GVzt5; Mon, 22 Jan 2024 00:29:43 +0100 (CET) X-Auth-Info: dXcNDC58gtHvshmd+GqKoAaChw265sB1iIF+RoDPnULP+T9XBI77pyMntNrVaVMW Received: from igel.home (aftr-62-216-202-131.dynamic.mnet-online.de [62.216.202.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 22 Jan 2024 00:29:43 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 6A55C2C1595; Mon, 22 Jan 2024 00:29:43 +0100 (CET) From: Andreas Schwab To: Jeff Law Cc: =?utf-8?B?6ZKf5bGF5ZOy?= , gcc-patches , "pan2.li" Subject: Re: [Committed] RISC-V: Suppress warning In-Reply-To: (Jeff Law's message of "Sun, 21 Jan 2024 15:51:37 -0700") References: <20240120002739.2860933-1-juzhe.zhong@rivai.ai> <6015693d-ec76-4737-a4a1-f319418bafc5@gmail.com> <23E6260D5D91876E+202401200918412733588@rivai.ai> X-Yow: Intra-mural sports results are filtering through th' plumbing... Date: Mon, 22 Jan 2024 00:29:43 +0100 Message-ID: <871qaai7tk.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Jan 21 2024, Jeff Law wrote: > Yea. The biggest problem with ATTRIBUTE_UNUSED is that it's a "may be > unused" and thus if the code changes it's sometimes left on an parameter > incorrectly. C++ allows us to specify a "is definitely unused" concept by > dropping the parameter's name, but leaving its type. It's problematic if the parameter is only used conditionally on a macro definition (which is less common with target hooks now being function calls). -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."