From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) From: Simon Marchi 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-Spam-Status: No, score=-17.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_QUARANTINE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Sun, 20 Jun 2021 01:35:39 -0000 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