[Bug fortran/19182] Error messages seem to be printed slower
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Tue Dec 28 22:35:00 GMT 2004
------- Additional Comments From pinskia at physics dot uc dot edu 2004-12-28 22:34 -------
Subject: Re: 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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19182
More information about the Gcc-bugs
mailing list