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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

https://gcc.gnu.org/g:d38b7b34f4dc69f896e1fbd984b859365f3dd282

commit r17-3706-gd38b7b34f4dc69f896e1fbd984b859365f3dd282
Author: Oleg Tolmatcev <[email protected]>
Date:   Wed Aug 26 21:06:56 2026 +0200

    cfgexpand: consistently align a stack-local [PR120192]

    defer_stack_allocation and expand_one_stack_var_1 computed a
    local's stack alignment in two different ways, so a variable the former
    considered small enough to allocate immediately could trip the
    large-alignment assert in the latter (PR target/120192).  Use
    align_local_variable in both.

    Regtested on x86_64-pc-linux-gnu and, under QEMU, on
    aarch64-unknown-linux-gnu, with no new failures.

    gcc/ChangeLog:

            PR target/120192
            * cfgexpand.cc (defer_stack_allocation): Use align_local_variable
            to compute the alignment, matching expand_one_stack_var_1.

    gcc/testsuite/ChangeLog:

            PR target/120192
            * gcc.target/i386/pr120192.c: New test.

    Signed-off-by: Oleg Tolmatcev <[email protected]>

Reply via email to