From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mDdbJYKbzmACdgAAWB0awg (envelope-from ) for ; Sat, 19 Jun 2021 21:36:02 -0400 Received: by simark.ca (Postfix, from userid 112) id 96DF41F163; Sat, 19 Jun 2021 21:36:02 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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 simark.ca (Postfix) with ESMTPS id 4A7F31E813 for ; Sat, 19 Jun 2021 21:36:02 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BC97B384BC30 for ; Sun, 20 Jun 2021 01:36:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC97B384BC30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1624152961; bh=fW4iKXTeDopyPj2Nd0IQbbkKLMw2+q3Csecf46QBOUA=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=QPOaDXzrbL1pcG3sIiYCfMhyE7pyXjwXREaZjduCk31kzm424vxrr3wydlzF5JbXg mD+a3zYotngtrOEJcXeVcGHb1HMZT73uNhG8lkwg4xm3xxmDpwquFsjQKPZYFIcNuB Og9JfttSNF++70UXyktVbjW4gOUT3rscZZMGdP60= Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 3C8A13858022 for ; Sun, 20 Jun 2021 01:35:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3C8A13858022 X-ASG-Debug-ID: 1624152933-0c856e67e2163e380001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id jA9pQgFGYnlOlklM (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 19 Jun 2021 21:35:33 -0400 (EDT) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) by smtp.ebox.ca (Postfix) with ESMTP id 00535441D64; Sat, 19 Jun 2021 21:35:32 -0400 (EDT) X-Barracuda-RBL-IP: 192.222.157.6 X-Barracuda-Effective-Source-IP: 192-222-157-6.qc.cable.ebox.net[192.222.157.6] X-Barracuda-Apparent-Source-IP: 192.222.157.6 To: gdb-patches@sourceware.org Subject: [PATCH 2/2] sim: use INLINE2 in STATIC_INLINE's definition Date: Sat, 19 Jun 2021 21:35:32 -0400 X-ASG-Orig-Subj: [PATCH 2/2] sim: use INLINE2 in STATIC_INLINE's definition Message-Id: <20210620013532.578626-2-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210620013532.578626-1-simon.marchi@polymtl.ca> References: <20210620013532.578626-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1624152933 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 1209 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.90767 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" I get this when building with gcc 11: make[2]: Entering directory '/home/simark/build/binutils-gdb/sim/m68hc11' CC interp.o In file included from /home/simark/src/binutils-gdb/sim/m68hc11/interp.c:23: /home/simark/src/binutils-gdb/sim/m68hc11/sim-main.h:515:1: error: ‘cpu_fetch16’ defined but not used [-Werror=unused-function] 515 | cpu_fetch16 (sim_cpu *cpu) | ^~~~~~~~~~~ cpu_fetch uses STATIC_INLINE, but STATIC_INLINE uses INLINE, which is defined to nothing when building without optimizations. Use INLINE2 instead, which is always defined (for gcc at least). sim/common/ChangeLog: * sim-inline.h (STATIC_INLINE): Use INLINE2. Change-Id: If91b4b3933667ffca0bf1ac855331ca50af6b974 --- sim/common/sim-inline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/common/sim-inline.h b/sim/common/sim-inline.h index 6ac4942e3521..e66324cb4786 100644 --- a/sim/common/sim-inline.h +++ b/sim/common/sim-inline.h @@ -314,7 +314,7 @@ /* Your compiler's static inline prefix */ #ifndef STATIC_INLINE -#define STATIC_INLINE static INLINE +#define STATIC_INLINE static INLINE2 #endif -- 2.32.0