On Wed, Mar 16, 2022 at 01:56:50PM +0530, Siddhesh Poyarekar wrote:
> 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:
> 
>       tree-optimization/104942
>       * tree-object-size.cc (alloc_object_size): Remove STRIP_NOPS.
> 
> gcc/testsuite/ChangeLog:
> 
>       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 <siddh...@gotplt.org>

Ok, thanks.

        Jakub

Reply via email to