diff options
author | Siddhesh Poyarekar <siddhesh@gotplt.org> | 2022-03-16 16:10:51 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@gotplt.org> | 2022-03-16 16:10:51 +0530 |
commit | 818e305ea692ebc6578fb40881887d45382f876b (patch) | |
tree | 6d0218fb04a76aa34bbd0e3d7505b68860eb177c /gcc/go | |
parent | 952155629ca1a4dfe7c7b26e53d118a9b853ed4a (diff) | |
download | gcc-818e305ea692ebc6578fb40881887d45382f876b.zip gcc-818e305ea692ebc6578fb40881887d45382f876b.tar.gz gcc-818e305ea692ebc6578fb40881887d45382f876b.tar.bz2 |
tree-optimization/104942: Retain sizetype conversions till the end
Retain the sizetype alloc_object_size to guarantee the assertion in
size_for_offset and to avoid adding a conversion there. nop conversions
are eliminated at the end anyway in dynamic object size computation.
gcc/ChangeLog:
PR tree-optimization/104942
* tree-object-size.cc (alloc_object_size): Remove STRIP_NOPS.
gcc/testsuite/ChangeLog:
PR tree-optimization/104942
* gcc.dg/builtin-dynamic-object-size-0.c (alloc_func_long,
test_builtin_malloc_long): New functions.
(main): Use it.
Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions