OSDN Git Service

* lang.c (java_handle_option): OPT_fbootclasspath_ can take an
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jun 2003 15:55:04 +0000 (15:55 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jun 2003 15:55:04 +0000 (15:55 +0000)
empty argument.

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

gcc/java/ChangeLog
gcc/java/lang.c

index 28f85b2..0b3a77e 100644 (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
index 64283d4..8c3578e 100644 (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: