Message ID | 796962a87e569feeafb5ef636de3c79000ae152c.1666257885.git.research_trasio@irq.a4lg.com |
---|---|
State | Accepted |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp153752wrs; Thu, 20 Oct 2022 02:29:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM54gXR/QaxMzRRAA3W4ZSpph7qqhGQKHlrpvtTzNhJwwMTsTAqMWY4Oo6JIQ9h9mImfxpfW X-Received: by 2002:a17:907:948f:b0:78d:e99f:63e3 with SMTP id dm15-20020a170907948f00b0078de99f63e3mr10172230ejc.361.1666258151020; Thu, 20 Oct 2022 02:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666258151; cv=none; d=google.com; s=arc-20160816; b=kbZ0YFLgl3/cloJamymmZyYZMWA3XSBMgQmhlA/b4Tf7ts1yOcRmv4SMDGeH3aketp atSA7H3pU5j6eIrTb4WS2/NnjL7fecVC9ZoPILqncW6Flzrf/BcuWFVCy2Veio26rwhN wG7j/aUYGcfycK/Dz/DTWMrjwicJ9DYLL7VqS+OpUHs2dbLolVQlRTNI0inEiosF9EsI G7663EZPYCzhKYEt47YD9tE6nSR8KBkAGnEXoCwgsEbFR3JuS4begGgL2Km/I6I0Iwyk uVMH1uksHmLM1yYj1TVCNCdtLlY5KwUtr8Wdut9Mtpvgim2NZ/oEYybxPrN7skGMB+uu mgLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=B5G44DajOyB10PokRhettBJ6jvso4sYKEZzAjZcSbBg=; b=RtKtUiUmgW3XJt02gH1c5nYM427Fz/cqSXcdMhthRN0/IDoLUIDmmmB6CBEQCacUsX IjlJf7DHC7isWvCex4eRuGq92kjlZ2Hd8Z3pduAsCux+Tj0vE7lrxQXweFuFlq66aWR9 x+ggP1cMAGsAh8faQtCL/b3s/VnsiL7zUkPbmjLLXglbWZuwMvwPVIjSP5CCQreS8tey /T0cX+b+lUnpngZvB4J/yoMhMcHuntr/nuJL28p0wkZwzfQz1HI5tsdAOiHwvxuCGo6B 7p8gGzsX1E9bU0TqbjgwMLICXQdOI8jknAa/niX4alvJ5FdqSDFJb7YHxUxLXwLGzbD8 r/Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Q1K2PHuu; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id dn16-20020a17090794d000b00730870cb4b6si13119363ejc.621.2022.10.20.02.29.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 02:29:11 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Q1K2PHuu; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6FE6D386076A for <ouuuleilei@gmail.com>; Thu, 20 Oct 2022 09:27:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6FE6D386076A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666258078; 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=Q1K2PHuu0uP9VM9+0ZJjR6SBvfOs9fZ3MRmQvqmW4iZSc5b7EmkSMWeBUbhGKq3TK 3xtQ0/SBK+//K6wsFWb/opcZB/l3JXb5N7d3gyPR/eBwbMSLmUUVliNDKAd1fevTDQ 58EbhbGLojY2KPVBUhDZhKDe0WexVEr9swTR3+xM= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 26B913851148 for <binutils@sourceware.org>; Thu, 20 Oct 2022 09:27:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 26B913851148 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 80244300089; Thu, 20 Oct 2022 09:27:08 +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:25:49 +0000 Message-Id: <796962a87e569feeafb5ef636de3c79000ae152c.1666257885.git.research_trasio@irq.a4lg.com> In-Reply-To: <cover.1666257885.git.research_trasio@irq.a4lg.com> References: <cover.1666257885.git.research_trasio@irq.a4lg.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.0 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Tsukasa OI via Binutils <binutils@sourceware.org> Reply-To: Tsukasa OI <research_trasio@irq.a4lg.com> Cc: binutils@sourceware.org Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747198307263485415?= X-GMAIL-MSGID: =?utf-8?q?1747198307263485415?= |
Series |
sim+gdb: Suppress warnings if built with Clang (big batch 1)
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Tsukasa OI
Oct. 20, 2022, 9:25 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(-)
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) {