Message ID | 796962a87e569feeafb5ef636de3c79000ae152c.1666258361.git.research_trasio@irq.a4lg.com |
---|---|
State | Committed |
Commit | 36edbb454fc9e720e723923d549b9f5356657a73 |
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 97D853933334 for <patchwork@sourceware.org>; Thu, 20 Oct 2022 09:35:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97D853933334 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666258526; bh=B5G44DajOyB10PokRhettBJ6jvso4sYKEZzAjZcSbBg=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=t4ln7uPjM0eJ8qF/f6IIOaA2gI/rQfxkcsWL/YCYw7gjQmGgebN6qse0ImAyTuZb9 1eQhEyb5eH1B98k5ydIVEVsAkwlfwccRqGYSUkMDa5TmRBy8H7xipdn2UUDiXU3syo wxI5h0SkattMnBANYO7b7KQAJUAaT4miCVdxZvQI= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org 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 <gdb-patches@sourceware.org>; 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) To: Tsukasa OI <research_trasio@irq.a4lg.com>, Andrew Burgess <aburgess@redhat.com>, Mike Frysinger <vapier@gentoo.org>, Nick Clifton <nickc@redhat.com> 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: <cover.1666258361.git.research_trasio@irq.a4lg.com> References: <cover.1666258361.git.research_trasio@irq.a4lg.com> 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 <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Tsukasa OI via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Tsukasa OI <research_trasio@irq.a4lg.com> Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
sim+gdb: Suppress warnings if built with Clang (big batch 1)
|
|
Commit Message
Tsukasa OI
Oct. 20, 2022, 9:32 a.m. UTC
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(-)
Comments
looks fine, but Andrew Burgess posted the same fix -mike
On 2022/10/23 23:02, Mike Frysinger wrote: > looks fine, but Andrew Burgess posted the same fix > -mike I'll leave it for Andrew and I will withdraw following patches from my patchset: - PATCH 03/40 - PATCH 15/40 - PATCH 16/40 (wrote by Andrew) - PATCH 28/40 - PATCH 30/40 - PATCH 36/40 Because this patchset (intended to be a RFC PATCH) is a mere copy of my working branch, I need to sync with Andrew's work. Thanks, Tsukasa
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<i-1> = 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<N> */ -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) {