[incremental] Patch: FYI: reset error count
Tom Tromey
tromey@redhat.com
Mon Oct 1 22:27:00 GMT 2007
I'm checking this in on the incremental-compiler branch.
I'm not sure why I didn't do this before. This resets errorcount and
sorrycount at the start of a new job. Without this, the server will
hang if the forked child crashes for some reason.
Tom
ChangeLog:
2007-10-01 Tom Tromey <tromey@redhat.com>
* toplev.c (server_callback): Reset errorcount and sorrycount.
Index: toplev.c
===================================================================
--- toplev.c (revision 128875)
+++ toplev.c (working copy)
@@ -2231,8 +2231,10 @@
GCC itself seems to write to stderr a lot ... */
dup2 (fd, 2);
- /* FIXME: reset errorcount and sorrycount. Maybe make a new
- global_dc? Arrange to unlink assembler output file on error. */
+ /* FIXME: make a new global_dc. Arrange to unlink assembler output
+ file on error. */
+ errorcount = 0;
+ sorrycount = 0;
px = start_as (as_argv);
More information about the Gcc-patches
mailing list