]> sourceware.org Git - libabigail.git/commit
Extend detection of compatible types to arrays
authorDodji Seketeli <dodji@redhat.com>
Fri, 12 Dec 2014 13:30:31 +0000 (14:30 +0100)
committerDodji Seketeli <dodji@redhat.com>
Fri, 12 Dec 2014 13:44:24 +0000 (14:44 +0100)
commit8879d005383c3d78034093798f25104d5c556757
treececf88948f68ff01ab879f44c32b45ed59f574db
parent501d5ab50253ce7e2ee14fbcd15477d275f7c589
Extend detection of compatible types to arrays

* include/abg-fwd.h (is_array_type): Renamed is_array_type_def()
into this for consistency.
* src/abg-comparison.cc (type_suppression::suppresses_diff):
Adjust.
* src/abg-dwarf-reader.cc (build_array_type): Remove useless code
that was trying to read a DW_AT_byte_size attribute from the DIE
of the array, but then wasn't doing anything with the value.  But
then if the attribute was not present, the array type wouldn't be
built.
* src/abg-ir.cc (strip_typedef): Strip typedefs from sub-types of
array types too.
(is_array_type): Rename is_array_def() to this, for consistency.
(var_decl::get_pretty_representation): Adjust.
* tests/data/test-diff-filter/libtest24-compatible-vars-v0.so: New
test input data.
* tests/data/test-diff-filter/libtest24-compatible-vars-v1.so: Likewise.
* tests/data/test-diff-filter/test24-compatible-vars-report-0.txt:
Likewise.
* tests/data/test-diff-filter/test24-compatible-vars-v0.c: Source
code for the first binary above.
* tests/data/test-diff-filter/test24-compatible-vars-v1.c: Source
code for the second binary above.
* tests/data/Makefile.am: Add the new test input data to source
distribution.
* tests/test-diff-filter.cc (in_out_specs): Add the new test input
data to the list of input to run this test harness over.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
12 files changed:
include/abg-fwd.h
src/abg-comparison.cc
src/abg-dwarf-reader.cc
src/abg-ir.cc
tests/data/Makefile.am
tests/data/test-diff-filter/libtest24-compatible-vars-v0.so [new file with mode: 0755]
tests/data/test-diff-filter/libtest24-compatible-vars-v1.so [new file with mode: 0755]
tests/data/test-diff-filter/test24-compatible-vars-report-0.txt [new file with mode: 0644]
tests/data/test-diff-filter/test24-compatible-vars-report-1.txt [new file with mode: 0644]
tests/data/test-diff-filter/test24-compatible-vars-v0.c [new file with mode: 0644]
tests/data/test-diff-filter/test24-compatible-vars-v1.c [new file with mode: 0644]
tests/test-diff-filter.cc
This page took 0.034524 seconds and 5 git commands to generate.