------- Comment #6 from rguenth at gcc dot gnu dot org 2010-06-22 13:46 ------- Confirmed.
DSE doesn't remove memset or memcpy calls. We also do not have a flag to mark functions only clobbering local or incoming memory (thus effectively not have side-effects if the argument reachable memory is unused after a call). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44612