mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-13 04:41:28 +00:00
5b9ef4d091
GCC can generate several DW_TAG_unspecified_parameters for a given function. Abigail's DWARF reader is recklessly creating a variadic function parameter in its internal representation (IR) each time it sees a DW_TAG_unspecified_parameters. This leads to functions having several variadic parameters in the final IR. And this is wrong. This patch fixes the problem by creating a variadic parameter only for the first DW_TAG_unspecified_parameters encountered for a given function DIE. * src/abg-dwarf-reader.cc (build_function_type): Create a variadic parameter just for the first DW_TAG_unspecified_parameters seen. * tests/data/test-diff-filter/test30-pr18904-rvalueref-report0.txt: Adjust. * tests/data/test-diff-filter/test30-pr18904-rvalueref-report1.txt: Adjust. * tests/data/test-read-dwarf/test16-pr18904.so.abi: Adjust. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.. | ||
abg-comp-filter.cc | ||
abg-comparison.cc | ||
abg-config.cc | ||
abg-corpus.cc | ||
abg-diff-utils.cc | ||
abg-dwarf-reader.cc | ||
abg-hash.cc | ||
abg-ini.cc | ||
abg-ir.cc | ||
abg-libxml-utils.cc | ||
abg-libzip-utils.cc | ||
abg-reader.cc | ||
abg-suppression.cc | ||
abg-tools-utils.cc | ||
abg-traverse.cc | ||
abg-viz-common.cc | ||
abg-viz-dot.cc | ||
abg-viz-svg.cc | ||
abg-workers.cc | ||
abg-writer.cc | ||
Makefile.am |