https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64883
--- Comment #13 from Iain Sandoe <iains at gcc dot gnu.org> --- FWIW I noticed: $ grep --exclude \*.svn\* -rH \(\(deprecated\)\) libstdc++-v3 libstdc++-v3/include/c_global/cstdio:extern "C" char* gets (char* __s) __attribute__((deprecated)); libstdc++-v3/include/c_std/cstdio:extern "C" char* gets (char* __s) __attribute__((deprecated)); Which will only fire for non-glibc targets.