https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60956
--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- For formatted, we already are parsing along the format string and we know when its list directed, so I think we could either call fbuf_alloc with a flag or call a different version of it that would auto flush or something similar. Maybe not buffer and let the OS do its thing.