https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63393
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think what is happening is hand coded memset is being optimized to memset and then becoming an infinite loop. I thought there was a fix for this already.