mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-20 00:00:45 +00:00
ca133d551b
In this problem report, Abigail's type comparison engine considers e.g, "unsigned short" and "short unsigned int" as being different types because they have different name strings. This is wrong. This patch canonicalize the names of integral types, so that e.g, "short unsigned", "unsigned short" and "unsigned short int" all have the same name which would be "unsigned short int". * src/abg-ir.cc (class integral_type): New class declaration and definition. (operator|, operator&, operator&=): New non-member bitwise operators for integral_type. (parse_integral_type_modifier, parse_base_integral_type) (parse_integral_type_modifier): New static function definitions. (type_decl::type_decl): Use the parse_integral_type to parse an integral type out of the current type_decl being built and transform the current type name into a canonical form. * tests/data/test-abidiff/test-PR18791-v0.so.abi: Adjust. * tests/data/test-abidiff/test-PR18791-v1.so.abi: Likewise. * tests/data/test-diff-filter/test30-pr18904-rvalueref-report0.txt: Likewise. * tests/data/test-diff-filter/test30-pr18904-rvalueref-report1.txt: Likewise. * tests/data/test-diff-filter/test33-report-0.txt: Likewise. * tests/data/test-diff-filter/test34-report-0.txt: Likewise. * tests/data/test-diff-pkg/libICE-1.0.6-1.el6.x86_64.rpm--libICE-1.0.9-2.el7.x86_64.rpm-report-0.txt: Likewise. * tests/data/test-read-dwarf/test10-pr18818-gcc.so.abi: Likewise. * tests/data/test-read-dwarf/test11-pr18828.so.abi: Likewise. * tests/data/test-read-dwarf/test12-pr18844.so.abi: Likewise. * tests/data/test-read-dwarf/test13-pr18894.so.abi: Likewise. * tests/data/test-read-dwarf/test14-pr18893.so.abi: Likewise. * tests/data/test-read-dwarf/test15-pr18892.so.abi: Likewise. * tests/data/test-read-dwarf/test16-pr18904.so.abi: Likewise. * tests/data/test-read-dwarf/test17-pr19027.so.abi: Likewise. * tests/data/test-read-dwarf/test18-pr19037-libvtkRenderingLIC-6.1.so.abi: Likewise. * tests/data/test-read-dwarf/test19-pr19023-libtcmalloc_and_profiler.so.abi: Likewise. * tests/data/test-read-dwarf/test20-pr19025-libvtkParallelCore-6.1.so.abi: Likewise. * tests/data/test-read-dwarf/test21-pr19092.so.abi: Likewise. * tests/data/test-read-dwarf/test22-pr19097-libstdc++.so.6.0.17.so.abi: Likewise. * tests/data/test-read-dwarf/test9-pr18818-clang.so.abi: Likewise. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.. | ||
test-enum0-report.txt | ||
test-enum0-v0.cc.bi | ||
test-enum0-v1.cc.bi | ||
test-enum1-report.txt | ||
test-enum1-v0.cc.bi | ||
test-enum1-v1.cc.bi | ||
test-PR18166-libtirpc.so | ||
test-PR18166-libtirpc.so.abi | ||
test-PR18166-libtirpc.so.report.txt | ||
test-PR18791-report0.txt | ||
test-PR18791-v0.so.abi | ||
test-PR18791-v1.so.abi | ||
test-qual-type0-report.txt | ||
test-qual-type0-v0.cc.bi | ||
test-qual-type0-v1.cc.bi | ||
test-struct0-report.txt | ||
test-struct0-v0.cc.bi | ||
test-struct0-v1.cc.bi | ||
test-struct1-report.txt | ||
test-struct1-v0.cc.bi | ||
test-struct1-v1.cc.bi | ||
test-var0-report.txt | ||
test-var0-v0.cc.bi | ||
test-var0-v1.cc.bi |