https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88796
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #1) > Wonder if we e.g. could use some magic alias set, magic MEM_EXPR or whatever > else to teach RTL DSE about this. > The severity of this is IMHO high because most of the distro vendors compile > everything with -fstack-protector* and if the RTL DSE can't remove stores > that are dea at the end of functions, it could affect a lot of code. I'd use a magic MEM_EXPR (just a special decl). IIRC I've seen this trick used elsewhere (don't remember for what though).