lang.c (java_handle_option): OPT_fbootclasspath_ can take an empty argument.

* lang.c (java_handle_option): OPT_fbootclasspath_ can take an
	empty argument.

From-SVN: r67778
This commit is contained in:
Tom Tromey 2003-06-11 15:55:04 +00:00 committed by Tom Tromey
parent 1ff9402d8f
commit 265411b6ca
2 changed files with 12 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2003-06-11 Tom Tromey <tromey@redhat.com>
* lang.c (java_handle_option): OPT_fbootclasspath_ can take an
empty argument.
2003-06-10 Andrew Haley <aph@redhat.com>
* resource.c (write_resource_constructor): Use expand_expr to

View file

@ -274,16 +274,17 @@ java_handle_option (size_t scode, const char *arg, int value)
if (arg == NULL && (option->flags & (CL_JOINED | CL_SEPARATE)))
{
/* These can take an emtpy argument. */
/* These can take an empty argument. */
if (code == OPT_fassume_compiled_
|| code == OPT_fclasspath_
|| code == OPT_fCLASSPATH_)
|| code == OPT_fCLASSPATH_
|| code == OPT_fbootclasspath_)
arg = "";
else
{
{
error ("missing argument to \"-%s\"", option->opt_text);
return 1;
}
return 1;
}
}
switch (code)
@ -384,7 +385,7 @@ java_handle_option (size_t scode, const char *arg, int value)
case OPT_fdump_:
if (!dump_switch_p (option->opt_text + strlen ("f")))
return 0;
return 0;
break;
case OPT_femit_class_file: