Bug 32402 - dwarf-reader,ir: Recognize new DWARF 5 languages
DWARF 5 introduced new language enumerators. Libabigail needs to
recognize some of them, especially those related to C, C++, and Ada.
But while looking into it, I thought I'd made it recognize more than
just those languages, to prepare for the future.
* configure.ac: Detect the presence of DW_LANG_* language
enumerators that were not supported before and for new ones that
got introduced in DWARF 5.
* include/abg-ir.h (translation_unit::LANG_{C17, C23,
C_plus_plus_17, C_plus_plus_20, C_plus_plus_23, OCaml, D, Go,
Rust, Zig, Metal, Fortran18, Fortran23,
Ada2005,
Ada2012, Kotlin,
C_sharp, Ruby, Assembly, Crystal, HIP, Mojo, GLSL, GLSL_ES, HLSL,
OpenCL_CPP, CPP_for_OpenCL, SYCL, Odin, P4, Move, Hylo}): Add new
languages enumerators.
* src/abg-dwarf-reader.cc (dwarf_language_to_tu_language)
(get_default_array_lower_bound): Recognize & support the new
languages enumerators above.
* src/abg-ir.cc (translation_unit_language_to_string): Likewise.
(is_c_language): Recognize translation_unit::LANG_C{17,23}.
(is_cplus_plus_language): Recognize
translation_unit::LANG_C_plus_plus_{20,23}.
(is_ada_language): Recognize
translation_unit::LANG_Ada{95,2005,2012}.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>