]> sourceware.org Git - libabigail.git/commit
Bug 32402 - dwarf-reader,ir: Recognize new DWARF 5 languages
authorDodji Seketeli <dodji@redhat.com>
Thu, 9 Jan 2025 16:45:40 +0000 (17:45 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 13 Jan 2025 05:23:13 +0000 (06:23 +0100)
commit95638b216f5bc8e27f0abd9f06826b3d6cb2c3a5
tree1c81553c0bf4a8687aaaabe58a1ded2e86b26c42
parentd6835cb9d902b827ae97e093bd73928d0cf8c733
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, Ada2005Ada2012, 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>
configure.ac
include/abg-ir.h
src/abg-dwarf-reader.cc
src/abg-ir.cc
This page took 0.035884 seconds and 5 git commands to generate.