From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id 19192382EA0E for ; Thu, 20 Oct 2022 09:33:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 19192382EA0E Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 6E2A7300089; Thu, 20 Oct 2022 09:33:25 +0000 (UTC) From: Tsukasa OI To: Tsukasa OI , Andrew Burgess , Mike Frysinger , Nick Clifton Cc: gdb-patches@sourceware.org Subject: [PATCH 03/40] sim/aarch64: Remove unused functions Date: Thu, 20 Oct 2022 09:32:08 +0000 Message-Id: <796962a87e569feeafb5ef636de3c79000ae152c.1666258361.git.research_trasio@irq.a4lg.com> In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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: 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: Thu, 20 Oct 2022 09:33:29 -0000 Clang generates a warning if there is a unused static function ("-Wunused-function"). On the default configuration, it causes a build failure (unless "--disable-werror" is specified). This commit removes unused functions from the AArch64 simulator. --- sim/aarch64/simulator.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/sim/aarch64/simulator.c b/sim/aarch64/simulator.c index 516a7830522..5881725cefd 100644 --- a/sim/aarch64/simulator.c +++ b/sim/aarch64/simulator.c @@ -83,22 +83,6 @@ } \ while (0) -/* Helper functions used by expandLogicalImmediate. */ - -/* for i = 1, ... N result = 1 other bits are zero */ -static inline uint64_t -ones (int N) -{ - return (N == 64 ? (uint64_t)-1UL : ((1UL << N) - 1)); -} - -/* result<0> to val */ -static inline uint64_t -pickbit (uint64_t val, int N) -{ - return pickbits64 (val, N, N); -} - static uint64_t expand_logical_immediate (uint32_t S, uint32_t R, uint32_t N) { -- 2.34.1