libabigail/src
Dodji Seketeli 5b9ef4d091 Bug 20332 - too many ...'s counted as parameters
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>
2016-07-08 09:51:24 +02:00
..
abg-comp-filter.cc Make abi{pkg}diff filter out changes about private types 2016-05-24 10:32:08 +02:00
abg-comparison.cc Make abi{pkg}diff filter out changes about private types 2016-05-24 10:32:08 +02:00
abg-config.cc Add --version option to several libabigail tools 2015-11-16 12:54:10 +01:00
abg-corpus.cc Plug leak of regex_t in suppression engine 2016-05-22 23:20:13 +02:00
abg-diff-utils.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-dwarf-reader.cc Bug 20332 - too many ...'s counted as parameters 2016-07-08 09:51:24 +02:00
abg-hash.cc Misc style fixes 2015-09-21 14:49:29 +02:00
abg-ini.cc Escape all characters when reading a string in ini files 2016-05-31 12:37:57 +02:00
abg-ir.cc Better recognize qualified void type 2016-07-07 14:04:10 +02:00
abg-libxml-utils.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-libzip-utils.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-reader.cc Misc cleanup in abg-reader.cc 2016-06-24 14:27:50 +02:00
abg-suppression.cc Make abi{pkg}diff filter out changes about private types 2016-05-24 10:32:08 +02:00
abg-tools-utils.cc Bug 20180 - Support system-wide suppression specifications 2016-05-30 18:39:49 +02:00
abg-traverse.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-viz-common.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-viz-dot.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-viz-svg.cc Update copyright years 2015-01-07 17:52:10 +01:00
abg-workers.cc Make API documentation of thread pools visible 2016-04-27 23:58:50 +02:00
abg-writer.cc Mist style cleanups 2016-02-24 15:13:20 +01:00
Makefile.am Bug 20180 - Support system-wide suppression specifications 2016-05-30 18:39:49 +02:00