https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108016
--- Comment #15 from Jeffrey A. Law <law at gcc dot gnu.org> --- WRT c#14. Yes, if had a stack object and the references to it go away during the later optimization phases, then the useless stack adjustments will be left lying around. I don't have the PR for that problem off the top of my head, but it's a known issue.