MONDAY, OCTOBER 19, 2026
bfd/epiphany — Proposed
bfd/epiphany: remove unused epiphany_relaxed variable
Removes an unused variable from bfd/elf32-epiphany.c to fix compiler warnings.
This patch removes the unused epiphany_relaxed variable from bfd/elf32-epiphany.c. The variable has been unused since the Epiphany port was added in 2011, and its removal addresses clang compiler warnings about unused variables.
In Details
The BFD library's Epiphany backend uses a static boolean variable epiphany_relaxed. This change removes that variable as it is never actually used after being conditionally set, resolving compiler warnings about unused variables. The relax_section function's logic is simplified accordingly.
For Context
- BFD
- Binary File Descriptor. A library within binutils that provides a common interface for reading and writing various binary object file formats.
- Epiphany
- A family of microprocessors developed by Adapteva.
- unused-but-set-global
- A compiler warning indicating a global variable that has been assigned a value but is never subsequently read. This often suggests dead code.