]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR java/30714:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2007 20:43:55 +0000 (20:43 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2007 20:43:55 +0000 (20:43 +0000)
* jvspec.c (lang_specific_driver): Check for the '-' in '-I'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121666 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/jvspec.c

index 6333d011d35db95018b00310f6ab0fa3edaa598d..1361a6e000be5f9bfd2aec94b5630ea236dabf1a 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-06  Tom Tromey  <tromey@redhat.com>
+
+       PR java/30714:
+       * jvspec.c (lang_specific_driver): Check for the '-' in '-I'.
+
 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
 
        * java-tree.h, javaop.def, jcf-parse.c: Fix comment typos.
index 441711816eb6ed57c7e294c460fdc24704a9a31c..3ebdff008fae2781fc8a9f2d9a89955394089460 100644 (file)
@@ -512,7 +512,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
          arglist[j] = "-xnone";
        }
 
-      if (argv[i][1] == 'I')
+      if (argv[i][0] == '-' && argv[i][1] == 'I')
        {
          const char *arg;
          if (argv[i][2] == '\0')