MONDAY, OCTOBER 19, 2026
bfd/rl78 — Proposed
bfd/rl78: remove unused bfd_elf32_rl78_set_target_flags
Removes an unused function and variable from bfd/elf32-rl78.c to fix compiler warnings.
This patch removes the unused bfd_elf32_rl78_set_target_flags function and its associated no_warn_mismatch variable from bfd/elf32-rl78.c. Both have been unused since the RL78 port was added in 2011, and their removal addresses clang compiler warnings.
In Details
The BFD library's RL78 backend has a function and a global variable intended for setting target flags, specifically related to warning mismatches. This change removes them because they have no callers and are unused, cleaning up dead code and resolving compiler warnings.
For Context
- BFD
- Binary File Descriptor. A library within binutils that provides a common interface for reading and writing various binary object file formats.
- RL78
- A family of microcontrollers from Renesas Electronics.
- 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.