Patch: FYI: fix PR java/30714

Tom Tromey tromey@redhat.com
Tue Feb 6 20:44:00 GMT 2007


I'm checking this in on the trunk and the RH 4.1 branch.

This fixes a silly bug with my earlier -I fix.  It failed to actually
check for the '-' and as a result gcj would not compile files whose
second letter was 'I'.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	PR java/30714:
	* jvspec.c (lang_specific_driver): Check for the '-' in '-I'.

Index: jvspec.c
===================================================================
--- jvspec.c	(revision 121660)
+++ jvspec.c	(working copy)
@@ -512,7 +512,7 @@
 	  arglist[j] = "-xnone";
 	}
 
-      if (argv[i][1] == 'I')
+      if (argv[i][0] == '-' && argv[i][1] == 'I')
 	{
 	  const char *arg;
 	  if (argv[i][2] == '\0')



More information about the Java-patches mailing list