[incremental] Patch: FYI: fix driver

Tom Tromey tromey@redhat.com
Thu Sep 13 15:09:00 GMT 2007


I'm checking this in on the incremental-compiler branch.

This fixes the driver so that it can be used to link again.

Tom

ChangeLog:
2007-09-13  Tom Tromey  <tromey@redhat.com>

	* gcc.c (execute): Fall back to exec if connection fails.

Index: gcc.c
===================================================================
--- gcc.c	(revision 127995)
+++ gcc.c	(working copy)
@@ -2947,15 +2947,11 @@
 #endif /* DEBUG */
     }
 
-  if (use_server)
+  /* Maybe we should warn the user if the connection fails?  */
+  if (use_server && client_connect (commands[0].argv[0]))
     {
       for (i = 0; i < n_commands; ++i)
 	{
-	  if (i == 0)
-	    {
-	      if (!client_connect (commands[i].argv[0]))
-		fatal ("couldn't start server: %s", commands[i].argv[0]);
-	    }
 	  if (!client_send_command (commands[i].argv))
 	    fatal ("couldn't send command to server: %s", commands[i].argv[0]);
 	}



More information about the Gcc-patches mailing list