From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 23BF33857C6F; Mon, 24 Oct 2022 16:20:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23BF33857C6F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666628444; bh=iRPyj1PqI764AKNvi2ANYPINjAXrqaLrvO9rhvXh/O0=; h=From:To:Subject:Date:From; b=ViZ1utqU69fsf/XDPV1MJXgHQnvT+p2lzrdqGymhKRK7MFfn2cDobespitmbOEa04 R+sp8e3pnPZEkmAKCGS3gM6YjQa00OVRVn4ARqOJq83JxOIKVx/pj+7BLiily96Vp8 DRvs3tzeBpGzCey0iXrvD4zqQNdLS9i8cIZNSoLg= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim/aarch64: remove two unused functions X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: e0b3df3b4d77706abf5f077477b2ca227fc4e9d1 X-Git-Newrev: 36edbb454fc9e720e723923d549b9f5356657a73 Message-Id: <20221024162044.23BF33857C6F@sourceware.org> Date: Mon, 24 Oct 2022 16:20:44 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D36edbb454fc9= e720e723923d549b9f5356657a73 commit 36edbb454fc9e720e723923d549b9f5356657a73 Author: Andrew Burgess Date: Wed Oct 19 15:16:53 2022 +0100 sim/aarch64: remove two unused functions =20 These functions are not used. Clang warns about the unused functions, which is then converted into an error by -Werror. =20 Delete the unused functions. Diff: --- 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) =20 -/* Helper functions used by expandLogicalImmediate. */ - -/* for i =3D 1, ... N result =3D 1 other bits are zero */ -static inline uint64_t -ones (int N) -{ - return (N =3D=3D 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) {