From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QK5IMqcXUGMHcA4AWB0awg (envelope-from ) for ; Wed, 19 Oct 2022 11:28:39 -0400 Received: by simark.ca (Postfix, from userid 112) id CA8ED1E112; Wed, 19 Oct 2022 11:28:39 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=Khb7mMtT; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.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 722EF1E0D3 for ; Wed, 19 Oct 2022 11:28:39 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1FEF43853565 for ; Wed, 19 Oct 2022 15:28:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FEF43853565 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666193319; bh=qr5DxL77hTFr3s/LyrXfwSe4CWgxQb8g774gZbBk1RI=; 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=Khb7mMtTbPoje4joeQf770/iWYevQTP3+dPPq8Qknj2Zb3qouMXr5nlCFWhjzpxZu xyFngNqSTvIotKT8ywWUY1goiw+TWqcW9HzBOBHGHqC7jrcnvqJ3kil/zmPhsHhHCV uCrGx+S5WUVmo4MbRFXn7wPVnZPioyz99jZ4ftuY= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 00C7F385085F for ; Wed, 19 Oct 2022 15:25:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 00C7F385085F Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-599-BRJkI8twMS-yjPbmPNmkaA-1; Wed, 19 Oct 2022 11:25:07 -0400 X-MC-Unique: BRJkI8twMS-yjPbmPNmkaA-1 Received: by mail-qk1-f199.google.com with SMTP id h8-20020a05620a284800b006b5c98f09fbso15270054qkp.21 for ; Wed, 19 Oct 2022 08:25:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qr5DxL77hTFr3s/LyrXfwSe4CWgxQb8g774gZbBk1RI=; b=A9eHangc7AvoAD0M3AaAvTY4D5oi4QF3iIYNvfijzr5ZjsLd+oGiYCELNVdnMyKRFD wSvB/uKUu+rz8kI4TQ9o+VFqHfCY4LsGKHmNKUBgVXK2Yon3Ug9gNFTsUd77YX8kf1Dz LdWLpExjM6BGcIQouSugrS+2DGIjGgxIqpiTD5gh+5edugyp/vmWPQ6zkPyDO0mERQcs qyGt77s9i8iOtLWKcWstQ6RUQ2blP2t4gDt9TVPCPH9ZB46ORao/JOS9+TlAi5HTFSqP zPTGT8jPqpzjwlbExwVEKEEiOIbSiEGT+x3c3XrsuSBQhS4SGpt2tyFCvSonfhJpqHS5 OmTg== X-Gm-Message-State: ACrzQf1KHW/8U/yRKRgxtgrembfPUrOVjABVD3CQRxHt3ANBR+aOCrn4 DxHB+6GPT7RoexfHqh2cw2paMzPDRzAwpD/CRnxfh1CpRph23xPuHCx/06Fc9VtdnEnYU1nDqhU S7oyU6+oi5MtBRcQ3TFO/zzzGalbCiWRqyAVKSVUuef+TjNfL6+MXXCoDuU19GrkYQ9wJge9tTQ == X-Received: by 2002:a05:6214:19c5:b0:4b1:863b:805c with SMTP id j5-20020a05621419c500b004b1863b805cmr7039670qvc.20.1666193106738; Wed, 19 Oct 2022 08:25:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Ohkfp3tTsG7rVWEjeKf+A7mw4SmgWO420ljxf82j9w/cgDG30XIPtOpkk2yqGipowYdvpoQ== X-Received: by 2002:a05:6214:19c5:b0:4b1:863b:805c with SMTP id j5-20020a05621419c500b004b1863b805cmr7039642qvc.20.1666193106484; Wed, 19 Oct 2022 08:25:06 -0700 (PDT) Received: from localhost ([31.111.84.238]) by smtp.gmail.com with ESMTPSA id f7-20020a05620a280700b006dfa0891397sm5224983qkp.32.2022.10.19.08.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 08:25:06 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [PATCH 06/10] sim/aarch64: remove two unused functions Date: Wed, 19 Oct 2022 16:24:45 +0100 Message-Id: <4e799e1e8eec565afacdf31e689d8f97ce71c498.1666192979.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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: Andrew Burgess via Gdb-patches Reply-To: Andrew Burgess Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" These functions are not used. Clang warns about the unused functions, which is then converted into an error by -Werror. Delete the unused functions. --- 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.25.4