OSDN Git Service

* java-tree.h (all_class_filename): Remove useless macro.
[pf3gnuchains/gcc-fork.git] / gcc / java / ChangeLog
index b805bf2..b111dad 100644 (file)
@@ -1,3 +1,99 @@
+2004-07-13  Per Bothner  <per@bothner.com>
+
+       * java-tree.h (all_class_filename):  Remove useless macro.
+       (enum java_tree_index):  Remove JTI_ALL_CLASS_FILENAME constant.
+       (BUILD_FILENAME_IDENTIFIER_NODE):  Remove useless macro.
+       * parse.y (java_parser_context_restore_global):  Replace
+       BUILD_FILENAME_IDENTIFIER_NODE by plain get_identifier.
+       * jcf-parse.c (read_class, java_parse_file):  Likewise.
+
+2004-07-12  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR java/16474
+       gjavah.c (print_field_info): Emit constant only if field is static.
+
+2004-07-11  Roger Sayle  <roger@eyesopen.com>
+
+       * expr.c (java_truthvalue_conversion, flush_quick_stack,
+       java_stack_swap, java_stack_dup, build_java_athrow, build_java_jsr,
+       build_java_ret, build_java_throw_out_of_bounds_exception,
+       build_java_array_length_access, java_check_reference,
+       build_java_arrayaccess, build_java_arraystore_check, build_newarray,
+       build_anewarray, expand_java_multianewarray, expand_java_arraystore,
+       expand_java_arrayload, build_java_monitor, expand_java_return,
+       expand_load_internal, expand_java_NEW, build_get_class,
+       build_instanceof, expand_java_CHECKCAST, expand_iinc,
+       build_java_soft_divmod, build_java_binop, build_field_ref,
+       expand_compare, expand_java_goto, expand_java_switch,
+       expand_java_add_case, build_class_init, build_known_method_ref,
+       invoke_build_dtable, build_invokevirtual, build_invokeinterface,
+       expand_invoke, build_jni_stub, expand_java_field_op,
+       java_expand_expr, expand_byte_code, STORE_INTERNAL,
+       force_evaluation_order, emit_init_test_initialization): Convert
+       calls to "build" into calls to the prefered "buildN" functions.
+
+2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
+
+       * java-tree.h (set_block): Remove.
+       * lang.c (java_clear_binding_stack): New.
+       (LANG_HOOKS_CLEAR_BINDING_STACK): Define.
+       * decl.c (struct binding_level): Remove this_block.
+       (clear_binding_level): Likewise.
+       (poplevel): Don't handle this_block.
+       (set_block): Remove.
+
+2004-07-10  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * class.c (common_enclosing_context_p): Remove statement with no
+       side-effects.
+
+2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR java/8618
+       * parse.y (create_anonymous_class): Remove 'location' argument. Use
+       the WFL from TYPE_NAME to get line number for the decl. Fix comment.
+       (craft_constructor): Inherit access flags for implicit constructor
+       from the enclosing class.
+       (create_class): Fix comment typo.
+       (resolve_qualified_expression_name): Pass type of qualifier to
+       not_accessible_p, not the type in which target field was found.
+       (not_accessible_p): Handle inner classes. Expand protected 
+       qualifier-subtype check to enclosing instances, but don't apply this 
+       check to static members. Allow protected access to inner classes
+       of a subtype. Allow private access within common enclosing context.
+       (build_super_invocation): Get WFL line number info from current
+       class decl.
+       (build_incomplete_class_ref): Update for new create_anonymous_class
+       signature.
+       * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Use
+       common_enclosing_instance_p.
+       * class.c (common_enclosing_context_p): New. Determine if types
+       share a common enclosing context, even across static contexts.
+       (common_enclosing_instance_p): Renamed from 
+       common_enclosing_context_p. Determines if types share a common
+       non-static enclosing instance.
+       * java-tree.h (common_enclosing_instance_p): Declare.
+       * jcf-write.c (get_method_access_flags): New. Surpress private flag
+       for inner class constructors.
+       (generate_classfile): Use get_method_access_flags.
+
+2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * class.c (interface_of_p): Check for null TYPE_BINFO.
+
+2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * class.c (make_class): Do not create binfo here.
+       (set_super_info): Create it here.
+       * java-tree.h (CLASS_HAS_SUPER): Cope with lack of a binfo.
+
+2004-07-08  Richard Henderson  <rth@redhat.com>
+
+       * expr.c (case_identity, get_primitive_array_vtable,
+       java_expand_expr, emit_init_test_initialization): Remove.
+       * java-tree.h (java_expand_expr): Remove.
+       * lang.c (LANG_HOOKS_EXPAND_EXPR): Remove.
+
 2004-07-07  Per Bothner  <per@bothner.com>
 
        * class.c (build_static_field_ref):  Add a NOP_EXPR; otherwise we
        properly initialize `finished_label'. Don't emit gotos for empty
        try statements.
 
-2000-03-19  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
+2000-03-19  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
 
        * except.c (emit_handlers): Clear catch_clauses_last.