[binutils-gdb] bfd/epiphany: remove unused epiphany_relaxed variable
Simon Marchi
simark@sourceware.org
Tue Nov 10 19:47:31 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=da76bc467dcfaf1df603b3e2bf9e50c6a3ceae2c
commit da76bc467dcfaf1df603b3e2bf9e50c6a3ceae2c
Author: Simon Marchi <simon.marchi@efficios.com>
Date: Fri Oct 30 10:53:58 2026 -0400
bfd/epiphany: remove unused epiphany_relaxed variable
Building bfd with a recent clang fails with:
/home/smarchi/src/binutils-gdb/bfd/elf32-epiphany.c:45:13: error: variable 'epiphany_relaxed' set but not used [-Werror,-Wunused-but-set-global]
The variable has been unused since the epiphany port was added in commit
cfb8c0921c8a (2011-10-25). Remove it.
Cc: Joern Rennecke <joern.rennecke@embecosm.com>
Diff:
---
bfd/elf32-epiphany.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/bfd/elf32-epiphany.c b/bfd/elf32-epiphany.c
index 5cb317ff155..a60927b1d1d 100644
--- a/bfd/elf32-epiphany.c
+++ b/bfd/elf32-epiphany.c
@@ -42,8 +42,6 @@ struct epiphany_opcode
unsigned short mask;
};
-static bool epiphany_relaxed = false;
-
/* Relocation tables. */
static reloc_howto_type epiphany_elf_howto_table [] =
{
@@ -198,10 +196,7 @@ epiphany_elf_relax_section (bfd *abfd, asection *sec,
*again = false;
if (first_section == NULL)
- {
- epiphany_relaxed = true;
- first_section = sec;
- }
+ first_section = sec;
if (first_section == sec)
{
More information about the Binutils-cvs
mailing list