[Bug fortran/19182] Error messages seem to be printed slower
Andrew Pinski
pinskia@physics.uc.edu
Tue Dec 28 22:34:00 GMT 2004
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
More information about the Gcc-bugs
mailing list