mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-16 06:54:37 +00:00
The Git repository of the Libabigail Project
ffec27fb38
elfutils regularly adds new members to the anonymous DWARF language encodings enum which contains the DW_LANG_* enumerators, from the dwarf.h header file. If we want libabigail to keep compiling with older versions of elfutils, we need to detect the absence of a given DW_LANG_* enumerator and avoid using it in that case. Until now, we were doing #ifdef DW_LANG_* for that purpose. But then the DW_LANG_* are *enumerators*, not preprocessor macros. So that preprocessor macro. This patch detects the presence of each of the "newer" DW_LANG_* enumerator using autoconf. And for each DW_LANG_xxx enumerator that is present, autoconf defines the HAVE_DW_LANG_xxx_enumerator macro. Libabigail source code can thus do #ifdef HAVE_DW_LANG_xxx_enumerator to guard the use of DW_LANG_xxx. Tested with the Rust binaries from https://gitlab.gnome.org/federico/abi-rust. * configure.ac: Detect the presence of DW_LANG_{UPC, D, Python, Go, C11, C_plus_plus_03, C_plus_plus_11, C_plus_plus_14, Mips_Assembler, Rust} and define the corresponding HAVE_DW_LANG_*_enumerator macro accordingly. * include/abg-ir.h (LANG_C_plus_plus_03): Define this new enumerator in the translation_unit::language enum. * src/abg-dwarf-reader.cc (dwarf_language_to_tu_language): Use the new HAVE_DW_LANG_*_enumerator macros. (get_default_array_lower_bound): Support the translation_unit::LANG_C_plus_plus_03 enumerator. * src/abg-ir.cc (is_cplus_plus_language): Support the translation_unit::LANG_C_plus_plus_03 enumerator. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
autoconf-archive | ||
bash-completion | ||
doc | ||
include | ||
m4 | ||
scripts | ||
src | ||
tests | ||
tools | ||
.gitignore | ||
abigail.m4 | ||
AUTHORS | ||
ChangeLog | ||
COMMIT-LOG-GUIDELINES | ||
COMPILING | ||
configure.ac | ||
CONTRIBUTING | ||
COPYING | ||
COPYING-GPLV3 | ||
COPYING-LGPLV2 | ||
COPYING-LGPLV3 | ||
default.abignore | ||
gen-changelog.py | ||
install-sh | ||
libabigail.pc.in | ||
ltmain.sh | ||
Makefile.am | ||
NEWS | ||
README | ||
release-text-template.txt | ||
update-copyright.sh | ||
VISIBILITY |
This is the Application Binary Interface Generic Analysis and Instrumentation Library. It aims at constructing, manipulating, serializing and de-serializing ABI-relevant artifacts. The set of artifacts that we are intersted is made of quantities like types, variable, fonctions and declarations of a given library or program. For a given library or program this set of quantities is called an ABI corpus. This library aims at (among other things) providing a way to compare two ABI Corpora (apparently the plural of corpus is copora, heh, that's cool), provide detailed information about their differences, and help build tools to infer interesting conclusions about these differences. You are welcome to contribute to this project after reading the files CONTRIBUTING and COMMIT-LOG-GUIDELINES files in the source tree. Communicating with the maintainers of this project -- including sending patches to be include to the source code -- happens via email at libabigail@sourceware.org.