diff options
author | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-03-13 21:01:05 -0800 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-03-13 21:01:05 -0800 |
commit | c2952b018a1baf25b12c339f2b96518425164295 (patch) | |
tree | bf1619873e76c17441a1423f1eaba6a4a64f054a /gcc/java/lex.c | |
parent | e4476d1cbd567593c068dba421b5e089f7ccbcd5 (diff) | |
download | gcc-c2952b018a1baf25b12c339f2b96518425164295.zip gcc-c2952b018a1baf25b12c339f2b96518425164295.tar.gz gcc-c2952b018a1baf25b12c339f2b96518425164295.tar.bz2 |
Added Java 1.1 language features.
From-SVN: r32517
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r-- | gcc/java/lex.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index 311f697..c5de7ed 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -72,6 +72,10 @@ java_init_lex () java_lang_id = get_identifier ("java.lang"); if (!java_lang_cloneable) java_lang_cloneable = get_identifier ("java.lang.Cloneable"); + if (!inst_id) + inst_id = get_identifier ("inst$"); + if (!wpv_id) + wpv_id = get_identifier ("write_parm_value$"); if (!java_lang_imported) { @@ -95,9 +99,9 @@ java_init_lex () if (!wfl_to_string) wfl_to_string = build_expr_wfl (get_identifier ("toString"), NULL, 0, 0); - ctxp->static_initialized = ctxp->non_static_initialized = - ctxp->incomplete_class = NULL_TREE; - + CPC_INITIALIZER_LIST (ctxp) = CPC_STATIC_INITIALIZER_LIST (ctxp) = + CPC_INSTANCE_INITIALIZER_LIST (ctxp) = ctxp->incomplete_class = NULL_TREE; + bzero ((PTR) ctxp->modifier_ctx, 11*sizeof (ctxp->modifier_ctx[0])); bzero ((PTR) current_jcf, sizeof (JCF)); ctxp->current_parsed_class = NULL; |