http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51773
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-06 16:12:00 UTC --- Sure, we'd need some coordination between glibc and libstdc++, or just a glibc version check and defining the std::gets prototype in libstdc++.