aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.cc
diff options
context:
space:
mode:
authorMartin Uecker <uecker@tugraz.at>2024-11-23 08:04:05 +0100
committerMartin Uecker <uecker@gcc.gnu.org>2024-12-12 13:26:27 +0100
commitd46c7f313b5a30ee04080f249e31e12987d50aa2 (patch)
tree0462ab20decf4595e26f037e03d06643e24e5cbf /gcc/value-range.cc
parent1f48225a0ddfaf74a229105343b22f3086c4b8cb (diff)
downloadgcc-d46c7f313b5a30ee04080f249e31e12987d50aa2.zip
gcc-d46c7f313b5a30ee04080f249e31e12987d50aa2.tar.gz
gcc-d46c7f313b5a30ee04080f249e31e12987d50aa2.tar.bz2
Fix type compatibility for types with flexible array member 2/2 [PR113688,PR114713,PR117724]
For checking or computing TYPE_CANONICAL, ignore the array size when it is the last element of a structure or union. To not get errors because of an inconsistent number of members, zero-sized arrays which are the last element are not ignored anymore when checking the fields of a struct. PR c/113688 PR c/114014 PR c/114713 PR c/117724 gcc/ChangeLog: * tree.cc (gimple_canonical_types_compatible_p): Add exception. gcc/lto/ChangeLog: * lto-common.cc (hash_canonical_type): Add exception. gcc/testsuite/ChangeLog: * gcc.dg/pr113688.c: New test. * gcc.dg/pr114014.c: New test. * gcc.dg/pr114713.c: New test. * gcc.dg/pr117724.c: New test.
Diffstat (limited to 'gcc/value-range.cc')
0 files changed, 0 insertions, 0 deletions