This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: FYI: fix PR java/30714
- From: Tom Tromey <tromey at redhat dot com>
- To: GCJ-patches <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 06 Feb 2007 11:32:20 -0700
- Subject: Patch: FYI: fix PR java/30714
- Reply-to: tromey at redhat dot com
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')