diff options
author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-06 22:06:22 +0000 |
---|---|---|
committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-06 22:06:22 +0000 |
commit | 57e0b67f9099183c76590029369a537ce77e846f (patch) | |
tree | d12da492ed43c4a347224bc8279988400a99514b /gcc/java/parse.h | |
parent | 6dd5d8e36d27af48e738ab1c460942b50607ea33 (diff) | |
download | gcc-57e0b67f9099183c76590029369a537ce77e846f.tar.gz |
Fri Dec 24 00:25:29 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* Makefile.in (LIBDEPS): Added gcc's errors.o
(../jcf-dump$(exeext):): Link with gcc's errors.o
(../gcjh$(exeext):): Likewise.
* expr.c (expand_java_NEW): Layout the entire target type instead of
laying out its methods only.
(lookup_field): Layout the class after having loaded it.
* java-tree.h (java_debug_context): Declared.
* jcf-io.c (toplev.h): Included.
(find_class): Removed assignment to jcf's outofsynch
field. Force source file to be read if newer than its matching
class file. Tweaked debug messages.
* jcf-parse.c (jcf_out_of_synch): Deleted.
(read_class): Call to jcf_out_of_synch removed.
* jcf.h (typedef struct JCF): Field `outofsynch' deleted.
(jcf_out_of_synch): Prototype deleted.
* parse.h (struct parser_ctxt): `minus_seen', `java_error_flag',
`deprecated' and `class_err': integer turned into bit fields.
New bit fields `saved_data_ctx' and `saved_data'. Fixed comments.
* parse.y (package_list): New global.
(package_declaration:): Record newly parsed package name.
(extra_ctxp_pushed_p): Static global deleted.
(java_parser_context_save_global): Create buffer context for the
purpose of saving globals, if necessary.
(java_parser_context_restore_global): Pop context pushed for the
purpose of saving globals, if necessary.
(java_debug_context_do): New prototype and function.
(java_debug_context): Likewise.
(do_resolve_class): Use already parsed package names to qualify
and lookup class candidate.
(java_pre_expand_clinit): Removed unnecessary local variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/parse.h')
-rw-r--r-- | gcc/java/parse.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/gcc/java/parse.h b/gcc/java/parse.h index c875592e6bf..d79c8aed539 100644 --- a/gcc/java/parse.h +++ b/gcc/java/parse.h @@ -605,10 +605,24 @@ struct parser_ctxt { int osb_depth; /* Current depth of [ in an expression */ int osb_limit; /* Limit of this depth */ int *osb_number; /* Keep track of ['s */ - int minus_seen; /* Integral literal overflow */ int lineno; /* Current lineno */ - int java_error_flag; /* Report error when true */ - int deprecated; /* @deprecated tag seen */ + + /* The flags section */ + + /* Indicates a context used for saving the parser status. The + context must be popped when the status is restored. */ + unsigned saved_data_ctx:1; + /* Indicates that a context already contains saved data and that the + next save operation will require a new context to be created. */ + unsigned saved_data:1; + /* Integral literal overflow */ + unsigned minus_seen:1; + /* Report error when true */ + unsigned java_error_flag:1; + /* @deprecated tag seen */ + unsigned deprecated:1; + /* Flag to report certain errors (fix this documentation. FIXME) */ + unsigned class_err:1; /* This section is defined only if we compile jc1 */ #ifndef JC1_LITE @@ -619,7 +633,6 @@ struct parser_ctxt { struct JCF *current_jcf; /* CU jcf */ int prevent_ese; /* Prevent expression statement error */ - int class_err; /* Flag to report certain errors */ int formal_parameter_number; /* Number of parameters found */ int interface_number; /* # itfs declared to extend an itf def */ @@ -650,7 +663,7 @@ struct parser_ctxt { int pending_block; /* Pending block to close */ - int explicit_constructor_p; /* True when processing an explicit + int explicit_constructor_p; /* >0 when processing an explicit constructor. This flag is used to trap illegal argument usage during an explicit constructor invocation. */ |