decl.c (error_mark_node): New global.
authorPer Bothner <bothner@cygnus.com>
Sun, 15 Nov 1998 14:37:52 +0000 (14:37 +0000)
committerPer Bothner <bothner@gcc.gnu.org>
Sun, 15 Nov 1998 14:37:52 +0000 (06:37 -0800)
commit9bbc7d9f4c30d9cf34a79c8b36a7e4f0857d764d
tree57ca81d68872cd1049e8022307078e2a68dd88b8
parent175135a659ad8d2ba5e827c1404d42d4924d98fc
decl.c (error_mark_node):  New global.


* decl.c (error_mark_node), java-tree.h:  New global.
* parse.y:  Use empty_stmt_node instead of size_zero_node.
(build_if_else_statement):  If missing else, use empty_stmt_node.
* parse.y (not_initialized_as_it_should_p):  Removed, with its callers.
(java_complete_expand_method):  Complain if return is missing.
(java_check_regular_methods):  Comment out incorrect error check.
(not_accessible_p):  Fix incorrect handling of protected methods.
(patch_method_invocation):  Pass correct context to not_accessible_p.
(find_applicable_accessible_methods_list):  Likewise.
(qualify_ambiguous_name):  If ARRAY_REF, it's an expression name.
(java_complete_tree):  For CASE_EXPR and DEFAULT_EXPR, set
TREE_TYPE (to void_type_node);  otherwise expand_expr crashes.
(patch_if_else_statement):  Fix setting of CAN_COMPLETE_NORMALLY.
* jcf-write.c (CHECK_OP, CHECK_PUT):  Add some error checking.
(push_int_const):  Remove reundant NOTE_PUSH.
(generate_bytecode_insns - case STRING_CST):  Do NOTE_PUSH.
(- case SWITCH_EXPR):  Fix code generation bug.
(- case PREDECREMENT_EXPR etc):  Remove redundant NOTE_PUSH.
(generate_classfile):  More robust for abstract methods.

From-SVN: r23661
gcc/java/ChangeLog
gcc/java/decl.c
gcc/java/java-tree.h
gcc/java/jcf-write.c
gcc/java/parse.y