OSDN Git Service

PR java/24120:
[pf3gnuchains/gcc-fork.git] / gcc / java / ChangeLog
index c45a791..b227a68 100644 (file)
@@ -1,3 +1,198 @@
+2005-09-29  Tom Tromey  <tromey@redhat.com>
+
+       PR java/24120:
+       * jcf-io.c (memoized_dirlist_hash): New function.
+       (caching_stat): Use it.
+
+2005-09-21  Ranjit Mathew  <rmathew@gcc.gnu.org>
+
+       PR java/21418
+       * class.c (inherits_from_p): Try to lay out super class
+       if it is not already laid out.
+       (maybe_layout_super_class): Handle the case where SUPER_CLASS
+       is a NULL_TREE.
+
+2005-09-18  James A. Morrison  <phython@gcc.gnu.org>
+
+       * builtins.c (max_builtin, min_builtin, abs_builtin,
+       java_build_function_call_expr): Use fold_buildN.
+       * class.c (layout_class_method): Likewise.
+       * expr.c (java_truthvalue_conversion, build_java_jsr,
+       build_java_arrayaccess, expand_java_arrayload, expand_iinc,
+       build_java_binop, build_field_ref, expand_compare,
+       build_known_method_ref, build_invokevirtual,
+       process_jvm_instruction): Likewise.
+       * parse.y (patch_binop, patch_exit_expr): Likewise.
+       * typeck.c (convert_ieee_real_to_integer): Likewise.
+       (convert): Don't call fold after convert_ieee_real_to_integer.
+
+2005-09-14  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR java/23891
+       * parse.y (maybe_create_class_interface_decl): Set TYPE_PACKAGE for
+       the newly created type. Set import lists here, not in create_class.
+       (jdep_resolve_class): Set current_class.
+       (do_resolve_class): Use current_class's TYPE_PACKAGE to determine 
+       the current package context, not ctxp->package.
+       (cicp_cache): Removed.
+       (class_in_current_package): Simplify implementation using TYPE_PACKAGE.
+       * jcf-parse.c (give_name_to_class): Set TYPE_PACKAGE.
+       * java-tree.h (TYPE_PACKAGE): New macro.
+       (struct lang_type): New member 'package'.
+
+2005-09-09  Andrew Haley  <aph@redhat.com>
+
+       PR libgcj/23182 
+       * expr.c (pop_type_0): If the expected type is object or ptr
+       (i.e. void*), return the type of the object we just popped from
+       the stack.
+
+2005-09-06  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * java-gimplify.c (java_gimplify_block): NULL out the old BLOCK's
+       BLOCK_EXPR_BODY before returning the new BIND_EXPR.
+
+2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
+
+       * check-init.c, decl.c, expr.c, gcj.texi, java-tree.h,
+       jcf-parse.c, jcf.h, parse.h, parse.y, typeck.c: Fix comment
+       typos.  Follow spelling conventions.
+
+2005-09-05  Ranjit Mathew  <rmathew@hotmail.com>
+
+       PR java/23431
+       * typeck.c (lookup_do): Look up interfaces for the original class,
+       not the base class.
+       * parse.y (java_check_regular_methods): Fix diagnostic message for
+       more restrictive overriding of a method from an interface.
+
+2005-08-16  Tom Tromey  <tromey@redhat.com>
+
+       * class.c (make_class_data): Always emit JV_STATE_PRELOADING for
+       class' initial state.
+
+2005-08-16  Ranjit Mathew  <rmathew@hotmail.com>
+
+       PR java/22113
+       * lex.c (do_java_lex): Define MAX_TOKEN_LEN. Avoid overflowing
+       `literal_token' for large numeric input tokens.
+
+2005-08-16  Ranjit Mathew  <rmathew@hotmail.com>
+
+       PR java/19870
+       * parse.y (nested_field_access_p): Rename to nested_member_access_p
+       and expand to handle method accesses across nested classes.
+       (build_outer_method_access_method): Rename to
+       build_nested_method_access_method.  Minor adjustments to comments.
+       (resolve_expression_name): Use the newly-renamed
+       nested_member_access_p method.
+       (resolve_qualified_expression_name): Likewise.
+       (patch_method_invocation): Also consider static methods for access
+       method generation.  Minor adjustments to comments.
+       (maybe_use_access_method): Use the more general
+       nested_memeber_access_p to determine access across nested class
+       boundaries.  Allow THIS_ARG to be NULL (for static methods).
+
+2005-08-15  Tom Tromey  <tromey@redhat.com>
+
+       PR java/23300.
+       * expr.c (build_field_ref): Don't generate otable reference when
+       DECL_FIELD_OFFSET is 0.
+       * class.c (maybe_layout_super_class): Pass outer class to
+       do_resolve_class.
+
+2005-08-15  Tom Tromey  <tromey@redhat.com>
+
+       * java-tree.h (LABEL_IN_SUBR): Removed.
+       (LABEL_IN_SUBR): Likewise.
+       (LABEL_IS_SUBR_START): Likewise.
+       (LABEL_SUBR_START): Likewise.
+       (LABEL_SUBR_CONTEXT): Likewise.
+       (LABEL_CHANGED): Likewise.
+       (LABEL_RETURN_LABEL): Likewise.
+       (LABEL_RETURN_TYPE_STATE): Likewise.
+       (LABEL_RETURN_LABELS): Likewise.
+       (RETURN_MAP_ADJUSTED): Likewise.
+       (LABEL_PENDING_CHAIN): Likewise.
+
+2005-08-15  Tom Tromey  <tromey@redhat.com>
+
+       * Make-lang.in (JAVA_OBJS): Removed verify.o
+       (java/verify.o): Removed.
+       * verify.c: Removed.
+       * lang.c (flag_new_verifier): Removed.
+       (java_post_options): Updated.
+       * java-tree.h (flag_new_verifier): Removed.
+       (verify_jvm_instructions): Removed.
+       * expr.c (pop_type_0): Assume flag_new_verifier is true.
+       (build_java_check_indexed_type): Likewise.
+       (expand_java_arraystore): Likewise.
+       (expand_java_arrayload): Likewise.
+       (pop_arguments): Likewise.
+       (expand_byte_code): Likewise.
+       (process_jvm_instruction): Likewise.
+
+2005-08-10  Andrew Haley  <aph@redhat.com>
+
+       * java-gimplify.c (java_gimplify_modify_expr): Fix any pointer
+       type mismatches to make legal GIMPLE.
+
+2005-08-10  Robin Green <greenrd@greenrd.org>
+
+       PR java/23230:
+       * parse.y (maybe_use_access_method): Generalize check from
+       java.lang.Object to any superclass of current_class
+
+2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * class.c (build_class_ref): Wrap the primary class type in a
+       NOP_EXPR.
+       * parse.y (java_complete_lhs) <COMPONENT_REF case>: Extract the
+       primary class type from the NOP_EXPR in which it was placed.
+
+2005-07-28  Diego Novillo  <dnovillo@redhat.com>
+
+       * expr.c (expand_load_internal): Fix missing parens in
+       predicate.
+
+2005-07-28  Andrew Haley  <aph@redhat.com>
+
+       * expr.c (expand_load_internal): Convert to destination type.
+
+2005-07-22  Manfred Hollstein  <mh@suse.com>
+
+       * verify-impl.c (check_class_constant): Fix uninitialised warnings.
+       (check_constant): Likewise.
+       (check_wide_constant): Likewise.
+
+2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
+
+       Make CONSTRUCTOR use VEC to store initializers.
+       * check-init.c (check_init): Update to cope with VEC in
+       CONSTRUCTOR_ELTS.
+       * class.c (make_field_value, make_method_value, get_dispatch_table,
+       make_class_data, emit_symbol_table, emit_catch_table,
+       emit_assertion_table): Use build_constructor_from_list instead of
+       build_constructor.
+       * constants.c (build_constants_constructor): Likewise.
+       * java-gimplify.c (java_gimplify_new_array_init): Update to cope with
+       VEC in CONSTRUCTOR_ELTS.
+       * java-tree.h (START_RECORD_CONSTRUCTOR, PUSH_SUPER_VALUE,
+       PUSH_FIELD_VALUE, FINISH_RECORD_CONSTRUCTOR): Create a VEC instead
+       of a TREE_LIST.
+       * jcf-write.c (generate_bytecode_insns): Update to cope with VEC in
+       CONSTRUCTOR_ELTS.
+       * parse.y (build_new_array_init): Use build_constructor_from_list
+       instead of build_constructor.
+       (patch_new_array_init): Update to cope with VEC in
+       CONSTRUCTOR_ELTS.
+       (array_constructor_check_entry): Likewise.
+
+2005-07-12  Tom Tromey  <tromey@redhat.com>
+
+       * jvspec.c (lang_specific_driver): Put filelist_filename first on
+       command line.
+
 2005-07-12  Tom Tromey  <tromey@redhat.com>
 
        PR java/19674: