This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] [AArch64] Removing unused functions.
- From: Marcus Shawcroft <mshawcroft at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 4 Mar 2015 12:41:40 -0000
- Subject: [binutils-gdb] [AArch64] Removing unused functions.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8ef229f32be156f374b8b5e3c63dba735a81fe55
commit 8ef229f32be156f374b8b5e3c63dba735a81fe55
Author: Marcus Shawcroft <marcus.shawcroft@arm.com>
Date: Wed Mar 4 12:21:02 2015 +0000
[AArch64] Removing unused functions.
Removing a group of unused functions from the AArch64 BFD backend.
Diff:
---
bfd/ChangeLog | 6 ++++++
bfd/elfxx-aarch64.c | 42 ------------------------------------------
2 files changed, 6 insertions(+), 42 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a257a66..db02752 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2015-03-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
+ * elfxx-aarch64.c (decode_add_imm, decode_movw_imm)
+ (decode_tst_branch_ofs_14, decode_ld_lit_ofs_19)
+ (decode_cond_branch_ofs_19, decode_branch_ofs_26): Remove.
+
+2015-03-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
+
* elfnn-aarch64.c (aarch64_build_one_stub): Call abort.
(aarch64_size_one_stub): Likewise.
(aarch64_map_one_stub): Likewise.
diff --git a/bfd/elfxx-aarch64.c b/bfd/elfxx-aarch64.c
index 35f3e22..b513a54 100644
--- a/bfd/elfxx-aarch64.c
+++ b/bfd/elfxx-aarch64.c
@@ -25,48 +25,6 @@
#define MASK(n) ((1u << (n)) - 1)
-/* Decode the 26-bit offset of unconditional branch. */
-static inline uint32_t
-decode_branch_ofs_26 (uint32_t insn)
-{
- return insn & MASK (26);
-}
-
-/* Decode the 19-bit offset of conditional branch and compare & branch. */
-static inline uint32_t
-decode_cond_branch_ofs_19 (uint32_t insn)
-{
- return (insn >> 5) & MASK (19);
-}
-
-/* Decode the 19-bit offset of load literal. */
-static inline uint32_t
-decode_ld_lit_ofs_19 (uint32_t insn)
-{
- return (insn >> 5) & MASK (19);
-}
-
-/* Decode the 14-bit offset of test & branch. */
-static inline uint32_t
-decode_tst_branch_ofs_14 (uint32_t insn)
-{
- return (insn >> 5) & MASK (14);
-}
-
-/* Decode the 16-bit imm of move wide. */
-static inline uint32_t
-decode_movw_imm (uint32_t insn)
-{
- return (insn >> 5) & MASK (16);
-}
-
-/* Decode the 12-bit imm of add immediate. */
-static inline uint32_t
-decode_add_imm (uint32_t insn)
-{
- return (insn >> 10) & MASK (12);
-}
-
/* Reencode the imm field of add immediate. */
static inline uint32_t
reencode_add_imm (uint32_t insn, uint32_t imm)