Commit 265411b6 by Tom Tromey Committed by Tom Tromey

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
parent 1ff9402d
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
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment