OSDN Git Service

* class.c (utf8_decl_list): Delete.
[pf3gnuchains/gcc-fork.git] / gcc / java / ChangeLog
index 960e114..6b8100d 100644 (file)
@@ -1,3 +1,347 @@
+2010-05-26  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * class.c (utf8_decl_list): Delete.
+       (build_utf8_ref): Remove references to it.
+       * java-tree.h (all_class_list): Delete.
+       (predef_filenames): Delete.
+       (enum java_tree_index) [JTI ALL_CLASS_LIST,JTI_PREDEF_FILENAMES]:
+       Delete.
+       * jcf-parse.c (parse_roots): Decrease size to 2.
+       (current_file_list): Convert to a VEC.
+       (all_class_list): Declare.
+       (jcf_parse): Adjust for new type of all_class_list.
+       (java_layout_seen_class_methods): Likewise.
+       (predefined_filenames): Declare.
+       (add_predefined_file): Use it.
+       (predefined_filename_p): Likewise.
+       (java_parse_file): Adjust for new type of current_file_list.                                                                                                                                                     *
+
+2010-05-25  Jakub Jelinek  <jakub@redhat.com>
+
+       * lang.c (java_classify_record): Return RECORD_IS_INTERFACE
+       for interfaces.
+
+       PR debug/43260
+       * java-tree.h (pending_static_fields): New extern declaration.
+       (java_write_globals): New prototype.
+       * lang.c (LANG_HOOKS_WRITE_GLOBALS): Define.
+       * decl.c (java_mark_class_local): When clearing DECL_EXTERNAL
+       of a static field push it into pending_static_fields vector.
+       * class.c (pending_static_fields): New variable.
+       (add_field): If static field is not DECL_EXTERNAL, push it into
+       pending_static_fields vector.
+       (java_write_globals): New function.
+
+2010-05-24  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * expr.c (quick_stack): Change type to a VEC.  Update comment.
+       (tree_list_free_list): Delete.
+       (flush_quick_stack): Update for quick_stack type change.
+       (push_value): Likewise.
+       (pop_value): Likewise.
+
+2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
+
+       * java-gimplify.c: Do not include tm.h, toplev.h.
+       * typeck.c: Do not include tm.h.
+       * mangle_name.c: Do not include tm.h.
+       * jcf-dump.c: Do not include tm.h, ggc.h.
+       * class.c: Do not include rtl.h, tm_p.h, target.h, except.h, cgraph.h.
+       * decl.c: Do not include tm.h, rtl.h, function.h, expr.h, except.h,
+       and timevar.h.
+       * jcf-parse.c: Do not include tm.h and tm_p.h.
+       * resource.c: Do not include tm.h, rtl.h, flags.h, obstack.h,
+       target.h, and expr.h.
+       * except.c: Do not include tm.h, rtl.h, function.h.
+       * builtins.c: Do not include convert.h.  Explain why RTL headers
+       have to be included here.
+       * verify-glue.c: Do not include tm.h.
+       * jcf-depend.c: Do not include tm.h.
+       * jcf-reader.c: Include ggc.h.
+       * jcf-io.c: Do not include tm.h, toplev.h.
+       * expr.c: Do not include tm.h, rtl.h, expr.h, except.h, tm_p.h,
+       gimple.h.
+       * lang.c: Do not include rtl.h, expr.h.
+       * Make-lang.in: Update dependencies.
+
+2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
+
+       * jcf-parse.c: Include bitmap.h.
+       * Make-lang.in: Update dependencies.
+
+2010-05-20  Jakub Jelinek  <jakub@redhat.com>
+
+       PR debug/43521
+       * decl.c (start_java_method): Set DECL_ARTIFICIAL on the 'this'
+       PARM_DECL.
+
+2010-05-19  Anatoly Sokolov  <aesok@post.ru>
+
+       * jcf-parse.c (get_constant): Use double_int_to_tree instead of
+       build_int_cst_wide_type.
+
+2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * expr.c (pop_arguments): Fix use of undeclared variable.
+
+2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * expr.c (expand_java_multianewarray): Use build_call_vec instead of
+       build_call_list.
+       (pop_arguments): Return a VEC instead of a tree.  Take a method type
+       rather than a list of argument types.
+       (rewrite_rule): Change signature. of rewrite_arglist member.
+       (rewrite_arglist_getcaller): Update signature.
+       (rewrite_arglist_getclass): Likewise.
+       (maybe_rewrite_invocation): Update for rewrite_arglist change.
+       (build_known_method_ref): Take a VEC instead of a tree.
+       (invoke_build_dtable): Likewise.
+       (expand_invoke): Update calls to pop_arguments.  Use build_call_vec
+       instead of build_call_list.
+       (build_jni_stub): Use build_call_vec instead of build_call_list.
+       * java-tree.h (maybe_rewrite_invocation): Update declaration.
+       (build_known_method_ref): Likewise.
+       (invoke_build_dtable): Likewise.
+
+2010-05-14  Nathan Froyd  <froydnj@codesourcery.com>
+
+       PR 44103
+       * java-tree.h (START_RECORD_CONSTRUCTOR): Change first argument to a
+       vector.  Move call to build_constructor...
+       (FINISH_RECORD_CONSTRUCTOR): ...here.  Add necessary arguments.  Clear
+       TREE_CONSTANT on the constructor.
+       (PUSH_SUPER_VALUE): Change first argument to a vector.
+       (PUSH_FIELD_VALUE): Likewise.
+       * resource.c (compile_resource_data): Update calls to above macros.
+       * constants.c (build_constants_constructor): Likewise.
+       * class.c (build_utf8_ref): Likewise.
+       (make_field_value): Likewise.
+       (make_method_value): Likewise.
+       (add_table_and_syms): New function.
+       (make_class_data): Call it.  Update calls to above macros.
+       (build_symbol_table_entry): New function.
+       (build_symbol_entry): Call it.  Update calls to above macros.
+       (emit_symbol_table): Likewise.
+       (make_catch_class_record): Update calls to above macros.
+       (build_assertion_table_entry): New function.
+       (add_assertion_table_entry): Call it.
+       (emit_assertion_table): Likewise.
+
+2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       PR 40989
+       * lang.c (java_handle_option): Add argument kind.
+
+2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * decl.c (java_init_decl_processing): Remove argument in call to
+       initialize_sizetypes
+
+2010-04-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * exception.cc (_Jv_Throw): Avoid set but not used warning.
+       * include/java-assert.h (JvAssertMessage, JvAssert): Use argument in
+       sizeof to avoid set but not used warnings.
+
+2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
+
+       * lang.c (java_post_options): Constify variable "dot".
+
+       * jcf-parse.c (set_source_filename): Constify variable "dot".
+       (load_class): Constify variable "separator".
+       Use get_identifier_with_length.
+
+       * jvspec.c (lang_specific_driver): Constify two variables named "p".
+
+2010-01-09  Jakub Jelinek  <jakub@redhat.com>
+
+       * jcf-dump.c (version): Update copyright notice dates.
+
+2009-11-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * jvspec.c (lang_specific_driver): Remove unused
+       saw_verbose_flag variable.
+       * jcf-dump.c (main): Remove unused general_purpose_bits
+       variable.
+       * builtins.c (initialize_builtins): Remove unused float_ftype_float
+       variable.
+       * expr.c (java_stack_pop): Remove unused val variable.
+       (build_jni_stub): Remove unused res_type variable.
+       * verify-impl.c (check_field_constant): Remove unused len variable.
+
+2009-10-20  Joel Dice <dicej@mailsnare.net>
+
+       PR java/28474
+       * mangle_name.c (append_unicode_mangled_name): Fix mangling
+       of names with multiple underscores and "U".
+       (unicode_mangling_length): Likewise.
+
+2009-10-03  Simon Baldwin  <simonb@google.com>
+
+       * config-lang.in (lang_dirs): Remove zlib.
+
+2009-09-28  Richard Henderson  <rth@redhat.com>
+
+       * builtins.c (initialize_builtins): Update call to
+       build_common_builtin_nodes.
+       * lang.c (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
+
+2009-09-14  Richard Henderson  <rth@redhat.com>
+
+       * builtins.c (initialize_builtins): Update call to
+       build_common_builtin_nodes.
+       * decl.c (java_init_decl_processing): Don't call
+       default_init_unwind_resume_libfunc.
+       * except.c: Include tree-iterator.h.
+       (build_exception_object_var): New.
+       (build_exception_object_ref): Use it.
+       (expand_end_java_handler): Initialize it from __builtin_eh_pointer.
+       Attach all CATCH_EXPRs to a single TRY_CATCH_EXPR.
+       * java-tree.h (DECL_FUNCTION_EXC_OBJ): New.
+
+2009-09-13  Richard Guenther  <rguenther@suse.de>
+       Rafael Avila de Espindola  <espindola@google.com>
+
+       * decl.c (do_nothing): Remove.
+       (java_init_decl_processing): Do not set lang_eh_runtime_type.
+       * Make-lang.in (lang.o): Add $(EXCEPT_H) dependency.
+       * lang.c (java_eh_personality): New.
+       (java_eh_personality_decl): Likewise.
+       (LANG_HOOKS_EH_PERSONALITY): Define.
+
+2009-09-03  Diego Novillo  <dnovillo@google.com>
+
+       * lang.c (lang_hooks): Remove const qualifier.
+
+2009-09-01  Jakub Jelinek  <jakub@redhat.com>
+
+       * boehm.c (mark_reference_fields): Compute % in HOST_WIDE_INT
+       type.
+
+2009-09-01  Richard Guenther  <rguenther@suse.de>
+
+       * lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
+       * java-tree.h (java_mark_addressable): Likewise.
+       * typeck.c (java_mark_addressable): Likewise.
+
+2009-08-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * Make-lang.in (java.install-pdf): Install gcj.pdf in
+       $(pdfdir)/gcc, alongside the other manuals.
+
+2009-08-12  Andrew Haley  <aph@redhat.com>
+
+       * builtins.c (compareAndSwapInt_builtin): Use
+       flag_use_atomic_builtins.
+       (compareAndSwapLong_builtin): Likewise.
+       (compareAndSwapObject_builtin): Likewise.
+       * jvspec.c: Add flag_use_atomic_builtins.
+       * gcj.texi: Likewise.
+       * java-tree.h: Likewise.
+       * lang.opt: Likewise.
+
+2009-08-11  Dodji Seketeli  <dodji@redhat.com>
+
+       PR debug/40990
+       * lang.c (put_decl_node): Outputs different level of information
+       depending on the verbosity level.
+
+2009-07-31  Andrew Haley  <aph@redhat.com>
+
+       PR java/40867
+       * decl.c (java_replace_references): Set EXPR_LOCATION on all
+       generated expressions.
+       (binding_level.loc): new field.
+       (clear_binding_level): Initialize loc.
+       (set_input_location): New function.
+       (pushlevel): Set new binding_level.loc.
+       (poplevel): Set EXPR_LOCATION on the new BIND_EXPR_BODY.
+       (start_java_method): Set DECL_SOURCE_LOCATION of this new method.
+       (java_add_stmt): Set the EXPR_LOCATION on all subtrees of new_stmt.
+
+2009-07-17  Richard Guenther  <rguenther@suse.de>
+
+       PR c/40401
+       * java-gimplify.c (java_genericize): Do not gimplify here.
+       But replace all local references.
+       (java_gimplify_expr): Do not replace local references here.
+       (java_gimplify_modify_expr): Likewise.
+       * jcf-parse.c (java_parse_file): Do not finalize the CU or
+       optimize the cgraph here.
+       * decl.c (java_replace_reference): Make static.
+       (java_replace_references): New function.
+       (end_java_method): Clear base_decl_map.
+       * java-tree.h (java_replace_references): Declare.
+       (java_replace_reference): Remove.
+
+2009-07-14  Taras Glek  <tglek@mozilla.com>
+           Rafael Espindola  <espindola@google.com>
+
+       * Make-lang.in (java.install-plugin): New target for
+       installing plugin headers.
+
+2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * class.c: Replace %J by an explicit location. Update all calls.
+       
+2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * jcf-parse.c: Replace %H by an explicit location. Update all calls.
+
+2009-06-29  Andrew Haley  <aph@redhat.com>
+
+       PR java/40590
+       * java-tree.h (cxx_keyword_p): New declaration.
+       * mangle_name.c (utf8_cmp): Move here from mangle.c.
+       (cxx_keywords): Likewise.
+       (cxx_keyword_p): Likewise.
+       (MANGLE_CXX_KEYWORDS): New macro.
+       (append_gpp_mangled_name): Use MANGLE_CXX_KEYWORDS.
+       (append_gpp_mangled_name): Likewise.
+       * mangle.c: Move code to mangle_name.c. 
+       (mangle_member_name): Don't call cxx_keyword_p.
+
+2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
+
+       * java-gimplify.c (java_gimplify_block): New argument to
+       build_empty_stmt.
+       * expr.c (force_evaluation_order): Same.
+       * typeck.c: Add location to build_decl or PUSH_FIELD calls.
+       * class.c: Same.
+       * decl.c: Same.
+       * jcf-parse.c: Same.
+       * constants.c: Same.
+       * resource.c: Same.
+       * except.c: Same.
+       * builtins.c: Same.
+       * expr.c: Same.
+       * java-tree.h (PUSH_FIELD): Add location field.
+       
+2009-06-09  Ian Lance Taylor  <iant@google.com>
+
+       * verify.h: Remove extern "C".
+
+2009-06-07  Ian Lance Taylor  <iant@google.com>
+
+       * jcf-parse.c (handle_constant): Change local variable 'kind' to
+       unsigned int.
+
+2009-06-01  Ian Lance Taylor  <iant@google.com>
+
+       * jcf-io.c (find_class): Use CONST_CAST.
+
+2009-05-27  Ian Lance Taylor  <iant@google.com>
+
+       * Make-lang.in ($(XGCJ)$(exeext)): Change $(COMPILER) to
+       $(LINKER).
+       (jc1$(exeext), jcf-dump$(exeext), jvgenmain$(exeext)): Likewise.
+
+2009-05-26  Ian Lance Taylor  <iant@google.com>
+
+       * Make-lang.in (jvspec.o): Use $(COMPILER).
+       ($(XGCJ)$(exeext), jc1$(exeext), jcf-dump$(exeext)): Likewise.
+       (jvgenmain$(exeext), java/jcf-io.o, java/jcf-path.o): Likewise.
+
 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
 
        * Make-lang.in (GCJ): Renamed to...