re PR driver/30714 (gcj driver doesn't recognize files starting with II)

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

From-SVN: r121666
This commit is contained in:
Tom Tromey 2007-02-06 20:43:55 +00:00 committed by Tom Tromey
parent 4aa9ca5049
commit ca20820ef1
2 changed files with 6 additions and 1 deletions

View 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.

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