public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim/aarch64: remove two unused functions
@ 2022-10-24 16:20 Andrew Burgess
0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2022-10-24 16:20 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=36edbb454fc9e720e723923d549b9f5356657a73
commit 36edbb454fc9e720e723923d549b9f5356657a73
Author: Andrew Burgess <aburgess@redhat.com>
Date: Wed Oct 19 15:16:53 2022 +0100
sim/aarch64: remove two unused functions
These functions are not used. Clang warns about the unused functions,
which is then converted into an error by -Werror.
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)
-/* 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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-24 16:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-24 16:20 [binutils-gdb] sim/aarch64: remove two unused functions Andrew Burgess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).