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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

https://gcc.gnu.org/g:18d44963e0343e1ad09fcd65ffecffb8d87c487d

commit r16-3411-g18d44963e0343e1ad09fcd65ffecffb8d87c487d
Author: Andrew Pinski <andrew.pin...@oss.qualcomm.com>
Date:   Tue Aug 26 20:57:09 2025 -0700

    testsuite; Fix unprotected-allocas-1.c at -O3 [PR121684]

    The problem here is after  r16-101, the 2 functions containing alloca/VLA
    start to be cloned and then we un-VLA happens in using_vararray so this
    is no longer testing what it should be testing.
    The obvious fix is to mark using_vararray and using_alloca as noclone too.

    Pushed as obvious after a quick test to make sure it is now working.

    gcc/testsuite/ChangeLog:

            PR testsuite/121684
            * c-c++-common/hwasan/unprotected-allocas-0.c: Mark
            using_vararray and using_alloca as noclone too.

    Signed-off-by: Andrew Pinski <andrew.pin...@oss.qualcomm.com>

Reply via email to