]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR driver/30714 (gcj driver doesn't recognize files starting with II)
authorTom Tromey <tromey@redhat.com>
Tue, 6 Feb 2007 20:43:55 +0000 (20:43 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 6 Feb 2007 20:43:55 +0000 (20:43 +0000)
PR java/30714:
* jvspec.c (lang_specific_driver): Check for the '-' in '-I'.

From-SVN: r121666

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