diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 1999-01-13 04:01:43 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 1999-01-12 20:01:43 -0800 |
commit | ba179f9f6f3c593721837c6c24cc39296a6eb92d (patch) | |
tree | d25a9959214ac681892dce2608d8b8067d1a80bf /gcc/java/lex.c | |
parent | 3c9a0f78d628f92d77ebb6455192174db7ab4907 (diff) | |
download | gcc-ba179f9f6f3c593721837c6c24cc39296a6eb92d.zip gcc-ba179f9f6f3c593721837c6c24cc39296a6eb92d.tar.gz gcc-ba179f9f6f3c593721837c6c24cc39296a6eb92d.tar.bz2 |
class.c (maybe_layout_super_class): Fixed returned value.
Wed Jan 13 01:24:54 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* class.c (maybe_layout_super_class): Fixed returned value.
* lex.c: Added 1999 to the copyright.
(java_init_lex): Initialize java_lang_imported.
* lex.h: Added 1999 to the copyright.
* parse.h: Added 1999 to the copyright.
(REGISTER_IMPORT): Fixed typo in trailing macro.
(CURRENT_OSB): New macro.
(struct parser_ctxt): New fields osb_depth, osb_limit.
* parse.y (java_lang_id): New global variable.
(type_import_on_demand_declaration): Don't import java.lang.* twice.
(array_creation_expression:): Use CURRENT_OSB.
(dims:): Uses a stack to keep track of array dimensions.
(cast_expression:): Use CURRENT_OSB.
(find_expr_with_wfl): Return NULL if node found doesn't meet the
conditions.
(register_fields): Fixed typos in comment.
(check_method_redefinition): Fixed comment indentation.
(java_check_regular_methods): Set saved found wfl to NULL after
having reinstalled it in the previously found DECL_NAME.
Fix an array dimension counting bug and some random other ones.
From-SVN: r24648
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r-- | gcc/java/lex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index fb83e5f..9e503d0 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -80,10 +80,13 @@ java_init_lex () int java_lang_imported = 0; #ifndef JC1_LITE + if (!java_lang_id) + java_lang_id = get_identifier ("java.lang"); + if (!java_lang_imported) { tree node = build_tree_list - (build_expr_wfl (get_identifier ("java.lang"), NULL, 0, 0), NULL_TREE); + (build_expr_wfl (java_lang_id, NULL, 0, 0), NULL_TREE); read_import_dir (TREE_PURPOSE (node)); TREE_CHAIN (node) = ctxp->import_demand_list; ctxp->import_demand_list = node; |