Commit dfbb4318 by Tobias Schlüter Committed by Paul Brook

re PR fortran/19182 (Error messages seem to be printed slower)

2005-01-16  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>

	PR fortran/19182
	* error.c (error_char): Line-buffer errors / warnings.

From-SVN: r93734
parent ef1b6bcd
2005-01-16 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/19182
* error.c (error_char): Line-buffer errors / warnings.
2005-01-16 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* trans-intrinsic.c (gfc_conv_intrinsic_ishft): Fix signed /
unsigned issue. Use build_int_cst instead of converting
integer_zero_node. Remove unnecessary conversion.
......
......@@ -86,7 +86,20 @@ error_char (char c)
else
{
if (c != 0)
fputc (c, stderr);
{
/* We build up complete lines before handing things
over to the library in order to speed up error printing. */
static char line[MAX_ERROR_MESSAGE + 1];
static int index = 0;
line[index++] = c;
if (c == '\n' || index == MAX_ERROR_MESSAGE)
{
line[index] = '\0';
fputs (line, stderr);
index = 0;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment