aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-struct-field-expr.h
diff options
context:
space:
mode:
authorQing Zhao <qing.zhao@oracle.com>2025-06-16 20:58:40 +0000
committerQing Zhao <qing.zhao@oracle.com>2025-07-01 20:22:06 +0000
commit7165ca43caf47007f5ceaa46c034618d397d42ec (patch)
treed334ae81769ef664cd05364bb908bfc52089d6ac /gcc/rust/backend/rust-compile-struct-field-expr.h
parent687727375769dd41971bad369f3553f1163b3e7a (diff)
downloadgcc-7165ca43caf47007f5ceaa46c034618d397d42ec.zip
gcc-7165ca43caf47007f5ceaa46c034618d397d42ec.tar.gz
gcc-7165ca43caf47007f5ceaa46c034618d397d42ec.tar.bz2
Use the counted_by attribute of pointers in builtinin-object-size.
gcc/ChangeLog: * tree-object-size.cc (access_with_size_object_size): Update comments for pointers with .ACCESS_WITH_SIZE. (collect_object_sizes_for): Propagate size info through GIMPLE_ASSIGN for pointers with .ACCESS_WITH_SIZE. gcc/testsuite/ChangeLog: * gcc.dg/pointer-counted-by-4-char.c: New test. * gcc.dg/pointer-counted-by-4-float.c: New test. * gcc.dg/pointer-counted-by-4-struct.c: New test. * gcc.dg/pointer-counted-by-4-union.c: New test. * gcc.dg/pointer-counted-by-4.c: New test. * gcc.dg/pointer-counted-by-5.c: New test. * gcc.dg/pointer-counted-by-6.c: New test. * gcc.dg/pointer-counted-by-7.c: New test.
Diffstat (limited to 'gcc/rust/backend/rust-compile-struct-field-expr.h')
0 files changed, 0 insertions, 0 deletions