summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/toplev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 9a724283ab3..46fdcbcca97 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1360,6 +1360,10 @@ compile_file (name)
if (finput == 0)
pfatal_with_name (name);
+#ifdef IO_BUFFER_SIZE
+ setvbuf (finput, xmalloc (IO_BUFFER_SIZE), _IOFBF, IO_BUFFER_SIZE);
+#endif
+
/* Initialize data in various passes. */
init_obstacks ();