https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82648
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This happens only when WCHAR is defined. This code is old and has changed a lot in glibc. Most likely when gcc moves over to gnulib from libiberty for this code, this most likely will fix itself.