https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88796
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- 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.