http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56053
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-28 12:07:12 UTC --- The optimization is sound without -fno-builtin-memset. Otherwise not - why would that not be in effect for darwin? Can you attach preprocessed source please?