https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- The testcase is of course invoking undefined behavior since it dereferences an uninitialized pointer. I'm not sure there was intentional changes to DSE here but eliding the store looks reasonable to me (though replacing it with a trap might be good as well - see other discussions about undefinedness). Thus confirmed - 7.5 removes the store while trunk does not. But it may be a deliberate change.