https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89201
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- See the glibc thread starting at: https://sourceware.org/ml/libc-alpha/2014-12/msg00506.html This talks about adding a specific version of memset that is used like what you want to use it. NOTE it is very valid in C to remove the memset. There are other ways of getting a memset-like function that is not removed (using volatile for one).