aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorQing Zhao <qing.zhao@oracle.com>2022-10-07 14:59:01 +0000
committerQing Zhao <qing.zhao@oracle.com>2022-10-07 17:44:14 +0000
commitb9ad850e86b863c24f6f4f5acf08d49944cc7bbe (patch)
tree75c67c9441b7ee72843604f81d79a1c97b9d254d /libcpp
parent1879e48f3d8595bc9e7f583bbd12df3c6f5c42dc (diff)
downloadgcc-b9ad850e86b863c24f6f4f5acf08d49944cc7bbe.zip
gcc-b9ad850e86b863c24f6f4f5acf08d49944cc7bbe.tar.gz
gcc-b9ad850e86b863c24f6f4f5acf08d49944cc7bbe.tar.bz2
Use array_at_struct_end_p in __builtin_object_size [PR101836]
Use array_at_struct_end_p to determine whether the trailing array of a structure is flexible array member in __builtin_object_size. gcc/ChangeLog: PR tree-optimization/101836 * tree-object-size.cc (addr_object_size): Use array_at_struct_end_p to determine a flexible array member reference. gcc/testsuite/ChangeLog: PR tree-optimization/101836 * gcc.dg/pr101836.c: New test. * gcc.dg/pr101836_1.c: New test. * gcc.dg/pr101836_2.c: New test. * gcc.dg/pr101836_3.c: New test. * gcc.dg/pr101836_4.c: New test. * gcc.dg/pr101836_5.c: New test. * gcc.dg/strict-flex-array-2.c: New test. * gcc.dg/strict-flex-array-3.c: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions