https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98575
--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> --- The pertinent glibc commit was: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=26c07172cde74617ca7214c93cdcfa75321e6b2b ("Remove getc and putc macros from the public stdio.h.", 2018-02-06). It's listed in the NEWS as in "Version 2.28", so presumably the test failure occurs with glibc < 2.28. That said, it's merely a symptom of the bug identified in comment #2