https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77992
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- A simple google search (secure memset [glibc]) finds a few things: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1381.pdf https://sourceware.org/ml/libc-alpha/2014-12/msg00506.html https://www.securecoding.cert.org/confluence/display/c/MSC06-C.+Beware+of+compiler+optimizations https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8537