libabigail/tests/data
Dodji Seketeli 35312fa92a [dwarf-reader] Make sure to canonicalize anonymous types
For a reason, anonymous types are not canonicalized.  I think this is
due to the fact that because they have no name,
read_context::lookup_type_from_die(die) used by maybe_canonicalize_type()
falls short in trying to canonicalize the *DIE*.

So later, at comparison time, things can be really slow because we
can't do canonical comparison; we ressort to structural comparison.

This patch ensures that even anonymous types are canonicalized.

	* src/abg-dwarf-reader.cc (maybe_canonicalize_type): Add two new
	overloads.  One that takes type_base_sptr, one that takes a
	Dwarf_Die* and type_base_sptr.  These force canonicalization for
	anonymous types.
	(build_function_type): Schedule function types for
	canonicalization.
	(build_ir_node_from_die): For struct/classes and unions, use the
	new overload of maybe_canonicalize_type to schedule
	canonicalization.
	* tests/data/test-read-dwarf/PR22122-libftdc.so.abi: Adjust.
	* tests/data/test-read-dwarf/test10-pr18818-gcc.so.abi: Adjust.
	* tests/data/test-read-dwarf/test12-pr18844.so.abi: Adjust.
	* tests/data/test-read-dwarf/test22-pr19097-libstdc++.so.6.0.17.so.abi: Adjust.
	* tests/data/test-read-dwarf/test9-pr18818-clang.so.abi: Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2019-07-08 09:50:29 +02:00
..
test-abicompat Represent sizes and offsets in bytes and hexadecimal values 2018-04-30 17:11:40 +02:00
test-abidiff Bug 24552 - abidiff fails comparing a corpus against a corpus group 2019-05-16 18:10:08 +02:00
test-abidiff-exit Update tests for the "better leaf mode redundancy management" patchset 2018-04-13 11:13:09 +02:00
test-alt-dwarf-file
test-annotate [dwarf-reader] Better use of linkage name for fn decl de-duplication 2019-06-13 18:28:12 +02:00
test-core-diff
test-default-supprs
test-diff-dwarf Make abidiff --harmless show harmless changes in unions 2019-06-26 12:08:55 +02:00
test-diff-dwarf-abixml Better handle decl-only classes being different from their definition 2017-07-04 16:47:43 +02:00
test-diff-filter Bug 24731 - Wrongly reporting union members order change 2019-06-26 11:09:43 +02:00
test-diff-pkg Fully account for anonymous-ness of scopes when comparing decl names 2019-06-21 11:42:44 +02:00
test-diff-suppr Bug 24139 - Support suppressing some enumerator changes 2019-01-31 09:20:06 +01:00
test-fedabipkgdiff Add --self-compare option in fedabipkgdiff 2017-05-31 16:21:14 +05:30
test-ini Bug 23533 - Accept '=' in ini property values 2018-08-30 10:54:33 +02:00
test-lookup-syms
test-read-dwarf [dwarf-reader] Make sure to canonicalize anonymous types 2019-07-08 09:50:29 +02:00
test-read-write Initial support for Ada ranges 2018-02-28 16:24:45 +01:00
test-types-stability
test-write-read-archive
Makefile.am Bug 24731 - Wrongly reporting union members order change 2019-06-26 11:09:43 +02:00