diff options
author | Per Bothner <per@bothner.com> | 2001-02-23 19:36:22 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2001-02-23 19:36:22 -0800 |
commit | e4087691f4d7fe47e16cf7881b00ffb1bfd3c2e7 (patch) | |
tree | ca30d7b4227b164e4610e5be9057de02ea1f403c | |
parent | fea2d5da9c4a43852594336efa2ff45283f5595b (diff) | |
download | gcc-e4087691f4d7fe47e16cf7881b00ffb1bfd3c2e7.zip gcc-e4087691f4d7fe47e16cf7881b00ffb1bfd3c2e7.tar.gz gcc-e4087691f4d7fe47e16cf7881b00ffb1bfd3c2e7.tar.bz2 |
Handle compiling multiple input files at once, and @FILE syntax.
* gcj.texi: Updated documentation to match.
and parse.h inadvertently left out from previous check-in.
From-SVN: r40026
-rw-r--r-- | gcc/java/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/java/gcj.texi | 38 | ||||
-rw-r--r-- | gcc/java/parse.h | 7 |
3 files changed, 42 insertions, 4 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 56cd3cc..e55383e 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,6 +1,7 @@ 2001-02-16 Per Bothner <per@bothner.com> Handle compiling multiple input files at once, and @FILE syntax. + * gcj.texi: Updated documentation to match. * java-tree.h (flag_filelist_file, init_src_parse): New declarations. * jcf-parse.c (parse_source_file): Split into ... (parse_source_file_1): New function - and: diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi index baa6281..af2eded 100644 --- a/gcc/java/gcj.texi +++ b/gcc/java/gcj.texi @@ -513,6 +513,7 @@ gcc, Using the GNU Compiler Collection}. This manual only documents the options specific to @code{gcj}. @menu +* Input and output files:: * Input Options:: How gcj finds files * Encodings:: Options controlling source file encoding * Warnings:: Options controlling warnings specific to gcj @@ -520,6 +521,43 @@ options specific to @code{gcj}. * Configure-time Options:: Options you won't use @end menu +@node Input and output files +@section Input and output files + +A @code{gcj} command is like a @code{gcc} command, in that it +consists of a number of options and file names. The following kinds +of input file names are supported: + +@table @code +@item @var{file}.java +Java source files. +@item @var{file}.class +Java bytecode files. +@item @var{file}.zip +@itemx @var{file}.jar +An archive containing one or more @code{.class} files, all of +which are compiled. The archive may be compressed. +@item @@@var{file} +A file containing a whitespace-separated list of input file names. +(Currently, these must all be @code{.java} source files, but that +may change.) +Each named file is compiled, just as if it had been on the command line. +@item @var{library}.a +@itemx @var{library}.so +@itemx -l@var{libname} +Libraries to use when linking. See the @code{gcc} manual. +@end table + +You can specify more than one input file on the @code{gcj} command line, +in which case they will all be compiled. If you specify a +@code{-o @var{FILENAME}} +option, all the input files will be compiled together, producing a +single output file, named @var{FILENAME}. +This is allowed even when using @code{-S} or @code{-c}, +but not when using @code{-C}. +(This is an extension beyond the what plain @code{gcc} allows.) +(If more than one input file is specified, all must currently +be @code{.java} files, though we hope to fix this.) @node Input Options @section Input Options diff --git a/gcc/java/parse.h b/gcc/java/parse.h index dc25907..336c2fd 100644 --- a/gcc/java/parse.h +++ b/gcc/java/parse.h @@ -780,10 +780,6 @@ struct parser_ctxt { tree package; /* Defined package ID */ - /* Those two list are saved accross file traversal */ - tree incomplete_class; /* List of non-complete classes */ - tree gclass_list; /* All classes seen from source code */ - /* These two lists won't survive file traversal */ tree class_list; /* List of classes in a CU */ jdeplist *classd_list; /* Classe dependencies in a CU */ @@ -947,4 +943,7 @@ ATTRIBUTE_NORETURN #endif ; extern void java_expand_classes PARAMS ((void)); + +extern struct parser_ctxt *ctxp; +struct parser_ctxt *ctxp_for_generation; #endif |