OSDN Git Service

PR java/15578:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Oct 2004 17:04:57 +0000 (17:04 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Oct 2004 17:04:57 +0000 (17:04 +0000)
* lang.opt (--extdirs): Document.
* jvspec.c (lang_specific_driver): Recognize -encoding and
-extdirs.

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

gcc/java/ChangeLog
gcc/java/jvspec.c
gcc/java/lang.opt

index fd0055a..d599add 100644 (file)
@@ -1,3 +1,10 @@
+2004-10-13  Tom Tromey  <tromey@redhat.com>
+
+       PR java/15578:
+       * lang.opt (--extdirs): Document.
+       * jvspec.c (lang_specific_driver): Recognize -encoding and
+       -extdirs.
+
 2004-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * parse.y (issue_warning_error_from_context): Use va_list *
index 83bf281..940cd8c 100644 (file)
@@ -1,6 +1,6 @@
 /* Specific flags and argument handling of the front-end of the 
    GNU compiler for the Java(TM) language.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -324,9 +324,11 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
                saw_o = 1;
              quote = argv[i];
            }
-         else if (strcmp(argv[i], "-classpath") == 0
-                  || strcmp(argv[i], "-bootclasspath") == 0
-                  || strcmp(argv[i], "-CLASSPATH") == 0)
+         else if (strcmp (argv[i], "-classpath") == 0
+                  || strcmp (argv[i], "-bootclasspath") == 0
+                  || strcmp (argv[i], "-CLASSPATH") == 0
+                  || strcmp (argv[i], "-encoding") == 0
+                  || strcmp (argv[i], "-extdirs") == 0)
            {
              quote = argv[i];
              added -= 1;
@@ -507,7 +509,9 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
 
       if (strcmp (argv[i], "-classpath") == 0
          || strcmp (argv[i], "-bootclasspath") == 0
-         || strcmp (argv[i], "-CLASSPATH") == 0)
+         || strcmp (argv[i], "-CLASSPATH") == 0
+         || strcmp (argv[i], "-encoding") == 0
+         || strcmp (argv[i], "-extdirs") == 0)
        {
          arglist[j] = concat ("-f", argv[i]+1, "=", argv[i+1], NULL);
          i++;
index 2711193..0e4ffcf 100644 (file)
@@ -132,6 +132,7 @@ Java Joined RejectNegative
 
 fextdirs=
 Java Joined RejectNegative
+--extdirs=<path>       Set the extension directory path
 
 ffilelist-file
 Java Var(flag_filelist_file)