This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug fortran/19182] Error messages seem to be printed slower
On Dec 28, 2004, at 5:31 PM, schnetter at aei dot mpg dot de wrote:
The call to setvbuf switches to line buffering, meaning that stderr is
flushed
only after every line and not after every character. I assume that
cc1 (as
opposed to f951) switches to line buffered stderr at some time, or else
outputs its error messages in some other way which is equivalent to
some
internal buffering. f951 outputs its messages character by character,
which
leads to an unnecessary overhead.
Actually cc1 just uses fprintf instead of fputc so maybe that is the
problem, maybe we should be doing our own buffering.
-- Pinski