https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118693
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #5) > https://unix.stackexchange.com/questions/131105/how-to-read-over-4k-input- > without-new-lines-on-a-terminal That is it is a limitation in the TTY part of the kernel and not in GCC's code base.