libabigail/tests/data/test-diff-suppr
Dodji Seketeli a05384675c Type read from DWARF don't have alignment information
Types read from DWARF don't have any alignment information so we
shouldn't try to guess it, especially for structures.  So this patch
sets the alignment to zero in that case.  This helps remove some
spurious alignment changes detected by abidiff just because in some
cases we fail to guess that.

In the process, I noticed that when calculating the hash value of a
given data member, we were not including the hash value of its
context.  This led to mistakenly considering some data member changes
as redundant.  So the patch fixes that too.

	* src/abg-dwarf-reader.cc (build_type_decl)
	(build_class_type_and_add_to_ir, build_pointer_type_def)
	(build_reference_type, build_function_decl): Set the alignment for
	native types, class, reference and function type to zero,
	effectively meaning that they don't have alignment information.
	* src/abg-hash.cc (var_decl:#️⃣:operator): Take the hash value
	of the data member context in account when computing the hash
	value of a given data member.
	* tests/data/test-diff-dwarf/test-23-diff-arch-report-0.txt:
	Adjust.
	* tests/data/test-diff-dwarf/test10-report.txt: Likewise.
	* tests/data/test-diff-dwarf/test13-report.txt: Likewise.
	* tests/data/test-diff-dwarf/test22-changed-parm-c-report-0.txt: Likewise.
	* tests/data/test-diff-dwarf/test26-added-parms-before-variadic-report.txt: Likewise.
	* tests/data/test-diff-dwarf/test8-report.txt: Likewise.
	* tests/data/test-diff-dwarf/test9-report.txt: Likewise.
	* tests/data/test-diff-filter/test13-report.txt: Likewise.
	* tests/data/test-diff-filter/test6-report.txt: Likewise.
	* tests/data/test-diff-suppr/test9-changed-parm-c-report-0.txt: Likewise.
	* tests/data/test-read-dwarf/test0.abi: Likewise.
	* tests/data/test-read-dwarf/test1.abi: Likewise.
	* tests/data/test-read-dwarf/test2.so.abi: Likewise.
	* tests/data/test-read-dwarf/test3.so.abi: Likewise.
	* tests/data/test-read-dwarf/test4.so.abi: Likewise.
	* tests/data/test-read-dwarf/test5.o.abi: Likewise.
	* tests/data/test-read-dwarf/test6.so.abi: Likewise.
	* tests/data/test-read-dwarf/test7.so.abi: Likewise.
	* tests/data/test-read-dwarf/test8-qualified-this-pointer.so.abi: Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2015-05-24 17:16:41 +02:00
..
libtest4-local-suppr-v0.so Properly propagate {REDUNDANT, SUPPRESSED}_CATEGORY wrt local changes 2014-10-13 17:44:44 +02:00
libtest4-local-suppr-v1.so Properly propagate {REDUNDANT, SUPPRESSED}_CATEGORY wrt local changes 2014-10-13 17:44:44 +02:00
libtest5-fn-suppr-v0.so Initial support for function suppressions 2014-10-28 17:36:32 +01:00
libtest5-fn-suppr-v1.so Initial support for function suppressions 2014-10-28 17:36:32 +01:00
libtest6-fn-suppr-v0.so Initial support for function suppressions 2014-10-28 17:36:32 +01:00
libtest6-fn-suppr-v1.so Initial support for function suppressions 2014-10-28 17:36:32 +01:00
libtest7-var-suppr-v0.so Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
libtest7-var-suppr-v1.so Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
libtest8-redundant-fn-v0.so Un-share diff nodes in the comparison IR 2014-12-26 18:45:06 +01:00
libtest8-redundant-fn-v1.so Un-share diff nodes in the comparison IR 2014-12-26 18:45:06 +01:00
libtest9-changed-parm-c-v0.so Un-share diff nodes in the comparison IR 2014-12-26 18:45:06 +01:00
libtest9-changed-parm-c-v1.so Un-share diff nodes in the comparison IR 2014-12-26 18:45:06 +01:00
libtest10-changed-parm-c-v0.so Do not mark sibling structurally identical nodes as redundant 2014-12-26 18:45:06 +01:00
libtest10-changed-parm-c-v1.so Do not mark sibling structurally identical nodes as redundant 2014-12-26 18:45:06 +01:00
test0-type-suppr-0.suppr Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test0-type-suppr-1.suppr Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test0-type-suppr-2.suppr Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test0-type-suppr-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test0-type-suppr-report-1.txt Support comparing symbols not referenced by debug info 2014-10-22 23:04:40 +02:00
test0-type-suppr-report-2.txt Support comparing symbols not referenced by debug info 2014-10-22 23:04:40 +02:00
test0-type-suppr-report-3.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test0-type-suppr-v0.cc Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test0-type-suppr-v0.o Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test0-type-suppr-v1.cc Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test0-type-suppr-v1.o Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test1-typedef-suppr-0.suppr Replace is_typedef by type_kind property in type suppressions 2014-10-13 17:44:44 +02:00
test1-typedef-suppr-1.suppr Replace is_typedef by type_kind property in type suppressions 2014-10-13 17:44:44 +02:00
test1-typedef-suppr-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test1-typedef-suppr-report-1.txt Support comparing symbols not referenced by debug info 2014-10-22 23:04:40 +02:00
test1-typedef-suppr-report-2.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test1-typedef-suppr-v0.c Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test1-typedef-suppr-v0.o Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test1-typedef-suppr-v1.c Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test1-typedef-suppr-v1.o Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test1-typedef-suppr.h Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test2-struct-suppr-0.suppr Fix struct type kind suppression support 2014-10-13 17:44:44 +02:00
test2-struct-suppr-1.suppr Fix struct type kind suppression support 2014-10-13 17:44:44 +02:00
test2-struct-suppr-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test2-struct-suppr-report-1.txt Support comparing symbols not referenced by debug info 2014-10-22 23:04:40 +02:00
test2-struct-suppr-v0.cc Fix struct type kind suppression support 2014-10-13 17:44:44 +02:00
test2-struct-suppr-v0.o Fix struct type kind suppression support 2014-10-13 17:44:44 +02:00
test2-struct-suppr-v1.cc Fix struct type kind suppression support 2014-10-13 17:44:44 +02:00
test2-struct-suppr-v1.o Fix struct type kind suppression support 2014-10-13 17:44:44 +02:00
test3-struct-suppr-0.suppr Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test3-struct-suppr-1.suppr Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test3-struct-suppr-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test3-struct-suppr-report-1.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test3-struct-suppr-report-2.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test3-struct-suppr-v0.cc Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test3-struct-suppr-v0.o Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test3-struct-suppr-v1.cc Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test3-struct-suppr-v1.o Initial support for type suppressions 2014-10-13 17:44:44 +02:00
test4-local-suppr-0.suppr Properly propagate {REDUNDANT, SUPPRESSED}_CATEGORY wrt local changes 2014-10-13 17:44:44 +02:00
test4-local-suppr-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test4-local-suppr-report-1.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test4-local-suppr-v0.c Properly propagate {REDUNDANT, SUPPRESSED}_CATEGORY wrt local changes 2014-10-13 17:44:44 +02:00
test4-local-suppr-v0.h Properly propagate {REDUNDANT, SUPPRESSED}_CATEGORY wrt local changes 2014-10-13 17:44:44 +02:00
test4-local-suppr-v1.c Properly propagate {REDUNDANT, SUPPRESSED}_CATEGORY wrt local changes 2014-10-13 17:44:44 +02:00
test4-local-suppr-v1.h Properly propagate {REDUNDANT, SUPPRESSED}_CATEGORY wrt local changes 2014-10-13 17:44:44 +02:00
test5-fn-suppr-0.suppr Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test5-fn-suppr-1.suppr Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test5-fn-suppr-2.suppr Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test5-fn-suppr-3.suppr Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test5-fn-suppr-4.suppr Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test5-fn-suppr-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test5-fn-suppr-report-1.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test5-fn-suppr-report-2.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test5-fn-suppr-report-3.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test5-fn-suppr-report-4.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test5-fn-suppr-report-5.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test5-fn-suppr-v0.cc Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test5-fn-suppr-v1.cc Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test6-fn-suppr-0.suppr Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test6-fn-suppr-1.suppr Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test6-fn-suppr-2.suppr Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test6-fn-suppr-3.suppr Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test6-fn-suppr-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test6-fn-suppr-report-1.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test6-fn-suppr-report-2.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test6-fn-suppr-report-3.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test6-fn-suppr-report-4.txt Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test6-fn-suppr-v0.cc Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test6-fn-suppr-v1.cc Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test6-fn-suppr-version-script Initial support for function suppressions 2014-10-28 17:36:32 +01:00
test7-var-suppr-1.suppr Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-2.suppr Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-3.suppr Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-4.suppr Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-5.suppr Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-6.suppr Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-7.suppr Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-8.suppr Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test7-var-suppr-report-1.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test7-var-suppr-report-2.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test7-var-suppr-report-3.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test7-var-suppr-report-4.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test7-var-suppr-report-5.txt Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-report-6.txt Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-report-7.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test7-var-suppr-report-8.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test7-var-suppr-v0.cc Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-v1.cc Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test7-var-suppr-version-script Initial support for variable suppressions 2014-11-01 12:22:08 +01:00
test8-redundant-fn-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test8-redundant-fn-report-1.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test8-redundant-fn-v0.cc Un-share diff nodes in the comparison IR 2014-12-26 18:45:06 +01:00
test8-redundant-fn-v1.cc Un-share diff nodes in the comparison IR 2014-12-26 18:45:06 +01:00
test9-changed-parm-c-report-0.txt Type read from DWARF don't have alignment information 2015-05-24 17:16:41 +02:00
test9-changed-parm-c-report-1.txt Type read from DWARF don't have alignment information 2015-05-24 17:16:41 +02:00
test9-changed-parm-c-v0.c Un-share diff nodes in the comparison IR 2014-12-26 18:45:06 +01:00
test9-changed-parm-c-v1.c Un-share diff nodes in the comparison IR 2014-12-26 18:45:06 +01:00
test10-changed-parm-c-report-0.txt Misc reporting fixes/improvements 2015-04-14 06:16:00 +02:00
test10-changed-parm-c-v0.c Do not mark sibling structurally identical nodes as redundant 2014-12-26 18:45:06 +01:00
test10-changed-parm-c-v1.c Do not mark sibling structurally identical nodes as redundant 2014-12-26 18:45:06 +01:00