https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109093
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I don't see where ix86_find_max_used_stack_alignment would walk over local vars and for TREE_USED ones take their alignment into account. Is that done somewhere else? If yes, it would be nice to know where and in that case perhaps Richi's commit is a real fix.