gjavah.c (main): Handle --output-class-directory argument.
authorTom Tromey <tromey@cygnus.com>
Fri, 13 Nov 1998 14:09:53 +0000 (14:09 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 13 Nov 1998 14:09:53 +0000 (14:09 +0000)
commitdf66b5660c1dc2f388b54d3d8d14951ead739edb
tree68a3d48319d95915e8d7750b2f010afd3c795f67
parentbbeeb2b0201c839ffc6c66f0f472b88964387e63
gjavah.c (main): Handle --output-class-directory argument.

* gjavah.c (main): Handle --output-class-directory argument.
* jvspec.c (lang_specific_driver): Translate `-d' into
-foutput-class-dir.
* jcf.h (jcf_write_base_directory): Declare.
* lang.c (lang_decode_option): Recognize -foutput-class-dir.
* lang-options.h: Mention -foutput-class-dir.
* jcf-write.c (jcf_write_base_directory): New global.
(make_class_file_name): Put generated .class file into `-d'
directory, or into source directory if -d not given.  Function now
static.
(write_classfile): Free class file name.  Handle case where class
file name is NULL.
(DIR_SEPARATOR): New macro.
Include <sys/stat.h>

From-SVN: r23640
gcc/java/ChangeLog
gcc/java/jcf-write.c
gcc/java/jcf.h
gcc/java/jvspec.c
gcc/java/lang-options.h
gcc/java/lang.c