* gjavah.c (main): Handle --output-class-directory argument.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Nov 1998 14:09:53 +0000 (14:09 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Nov 1998 14:09:53 +0000 (14:09 +0000)
commit0276827277a48d5bd4c9962b74fc0108fabdee61
tree68a3d48319d95915e8d7750b2f010afd3c795f67
parent1859d8ec16fcbddf72639fcbe2130d6c2b9d6318
* 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>

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23640 138bc75d-0d04-0410-961f-82ee72b054a4
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