OSDN Git Service

authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Nov 1998 14:37:52 +0000 (14:37 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Nov 1998 14:37:52 +0000 (14:37 +0000)
commitc83b8ce5c913b172f5c4169f6465b1544fd5d2af
tree57ca81d68872cd1049e8022307078e2a68dd88b8
parentf1fd28bcdbbba28f954b3f93b9ab65e52fa50dc0

* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23661 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/java/ChangeLog
gcc/java/decl.c
gcc/java/java-tree.h
gcc/java/jcf-write.c
gcc/java/parse.y