This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[incremental] Patch: FYI: fix thinko in toplev.c
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 08 Nov 2007 10:04:52 -0700
- Subject: [incremental] Patch: FYI: fix thinko in toplev.c
- Reply-to: Tom Tromey <tromey at redhat dot com>
I'm checking this in on the incremental-compiler branch.
In an earlier patch I must have neglected to test the non-server case,
because in that case 'job' can be NULL, and so toplev.c:finalize()
would ICE.
Tom
ChangeLog:
2007-11-08 Tom Tromey <tromey@redhat.com>
* toplev.c (finalize): Check 'job'.
Index: toplev.c
===================================================================
--- toplev.c (revision 129638)
+++ toplev.c (working copy)
@@ -2189,7 +2189,7 @@
server_asm_out_file = NULL;
}
- if (job->as_process)
+ if (job && job->as_process)
{
int result;
wait_for_as (job->as_process, &result);