This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[incremental] Patch: FYI: fix thinko in toplev.c


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]