https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108016
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Alexey Merzlyakov from comment #11) > Stack usage for this code is being generated later on the "expand" stage > when we are addressing local D.2333 variable. It means, that probably there > might be no easy way how to fix it on tree-level and the solution have to be > RTL- / DSE-based. That is not entirely true. There is https://gcc.gnu.org/pipermail/gcc-patches/2024-August/660968.html which (though I am not 100% sure) will help the situtation.