https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104942

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Siddhesh Poyarekar
<siddh...@gcc.gnu.org>:

https://gcc.gnu.org/g:818e305ea692ebc6578fb40881887d45382f876b

commit r12-7667-g818e305ea692ebc6578fb40881887d45382f876b
Author: Siddhesh Poyarekar <siddh...@gotplt.org>
Date:   Wed Mar 16 16:10:51 2022 +0530

    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 <siddh...@gotplt.org>

Reply via email to