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]

Patch: FYI: fix PR java/30714


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


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