This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Proposed PATCH: --output-class-directory


For Java we'd like to add a `--output-class-directory' option.  This
option takes an argument which tells the java compiler where to write
the `.class' files it generates.  We can't specify the output file
name on a case by case basis because a single invocation of the
compiler can generate multiple .class files.  (For those familiar with
javac, this is the `-d' option; the `gcj' front end will support -d
for compatibility.)

I've appended the proposed patch.  Please tell me if I can check it
in.  If not, please tell me what I should change to make it
acceptable.  Thanks!

Tom

Fri Nov 13 01:19:35 1998  Tom Tromey  <tromey@cygnus.com>

	* gcc.c (option_map): Recognize --output-class-directory.

Index: gcc.c
===================================================================
RCS file: /cvs/egcs/egcs/gcc/gcc.c,v
retrieving revision 1.68
diff -u -r1.68 gcc.c
--- gcc.c	1998/11/12 19:37:28	1.68
+++ gcc.c	1998/11/13 08:20:58
@@ -887,6 +887,7 @@
    {"--no-warnings", "-w", 0},
    {"--optimize", "-O", "oj"},
    {"--output", "-o", "a"},
+   {"--output-class-directory", "-foutput-class-dir=", "ja"},
    {"--pedantic", "-pedantic", 0},
    {"--pedantic-errors", "-pedantic-errors", 0},
    {"--pipe", "-pipe", 0},


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]