[PATCH 1/5] libiberty: move DW_LANG_* definitions to dwarf2.def

Tom Tromey tom@tromey.com
Wed Feb 19 16:22:31 GMT 2025


>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:

Simon> In order to get a "DW_LANG_* to string" function:
Simon>   - move the "DW_LANG_*" definitions from dwarf2.h to dwarf2.def
Simon>   - add the necessary macros in dwarf2.h to generate the enumeration
Simon>   - add the necessary macros in dwarfnames.c to generate the "to string"
Simon>     function

This is ok by me, but normally these patches have to go via gcc first.
Though maybe bidirectional merging is ok now?  But OTOH libiberty may
require separate approvals.

Tom


More information about the Binutils mailing list