ld/ticoff: remove unused coff_version variable
Remove unused `coff_version` variable from ld/ticoff emulation.
Simon Marchi is removing the coff_version variable from the ld/ticoff emulation. This variable has been unused since 2000 and causes build failures with recent Clang versions due to the -Wunused-but-set-global warning. The --format option directly selects the output format, making this variable redundant.
- proposer
Proposes removing the unused `coff_version` variable from `ld/ticoff` which causes build errors.
“Building ld with a recent clang fails with: etic3xcoff.c:46:12: error: variable 'coff_version' set but not used [-Werror,-Wunused-but-set-global] The same happens for the other emulations generated from ticoff.em. The variable has been unused since it was added in commit 74459f0e3ead ("tic54x/ibmc54xdsp target for ld.", 2000-06-20). The --format option selects the output format directly.…”
In Details
This patch removes an unused global variable coff_version from ld/emultempl/ticoff.em. This variable was intended to control the COFF version for specific TI emulations but has been obsolete since 2000. The --format option directly handles output format selection, rendering coff_version unnecessary and causing build warnings with modern compilers.