OSDN Git Service

PR 44103
[pf3gnuchains/gcc-fork.git] / gcc / java / ChangeLog
index fd98969..b2de8bc 100644 (file)
@@ -1,3 +1,456 @@
+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...
+       (XGCJ): ... this.
+
+2009-04-27  Ian Lance Taylor  <iant@google.com>
+
+       * builtins.c (java_builtins): Add casts to enum type.
+       * verify-impl.c (check_class_constant): Add cast to enum type.
+       (check_constant, check_wide_constant): Likewise.
+
+2009-04-27  Richard Guenther  <rguenther@suse.de>
+
+       PR java/38374
+       * constants.c (build_constants_constructor): Retain the old
+       pointer type as valid TYPE_POINTER_TO after patching the
+       type of the constant pool decl.
+
+2009-04-24  Ian Lance Taylor  <iant@google.com>
+
+       * jcf-parse.c (handle_constant): Add cast to enum type.
+
+2009-04-21  Taras Glek <tglek@mozilla.com>
+
+       * builtins.c: Update GTY annotations to new syntax
+       * decl.c: Likewise
+       * java-tree.h: Likewise
+       * jcf.h: Likewise
+       * lang.c: Likewise
+
+2009-04-21  Joseph Myers  <joseph@codesourcery.com>
+
+       * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
+       license notices.
+
+2009-04-18  Ian Lance Taylor  <iant@google.com>
+
+       * verify-impl.c (verify_instructions_0): Add cast to enum type.
+
+2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
+
+        * builtins.c (compareAndSwapLong_builtin,
+        compareAndSwapInt_builtin, compareAndSwapObject_builtin,
+        VMSupportsCS8_builtin): Do not look at sync_compare_and_swap_cc.
+
+2009-03-31  Richard Guenther  <rguenther@suse.de>
+
+       * java-gimplify.c (java_gimplify_expr): Do not manually gimplify
+       the first operand of binary and comaprison expressions.
+
+2009-03-30  Joseph Myers  <joseph@codesourcery.com>
+
+       PR rtl-optimization/323
+       * lang.c (java_post_options): Set flag_excess_precision_cmdline.
+       Give an error for -fexcess-precision=standard for processors where
+       the option is significant.
+
+2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lang.opt: Unify help text for -Wdeprecated.
+
+2009-02-03  Jakub Jelinek  <jakub@redhat.com>
+
+       * jcf-dump.c (version): Update copyright notice dates.
+
+2009-01-16  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/38835
+       PR middle-end/36227
+       * builtins.c (build_addr_sum): Use POINTER_PLUS_EXPR.
+
+2008-12-05  Sebastian Pop  <sebastian.pop@amd.com>
+
+       PR bootstrap/38262
+       * Make-lang.in (jc1): Add BACKENDLIBS, remove GMPLIBS.
+
+2008-11-04  Andrew Haley  <aph@redhat.com>
+
+       PR java/37068
+       * jcf-parse.c (java_emit_static_constructor): Don't call
+       cgraph_build_static_cdtor.  Rewrite.
+
+2008-10-24  Jakub Jelinek  <jakub@redhat.com>
+
+       * Make-lang.in (check-java-subtargets): New target.
+
+2008-10-16  David Edelsohn  <edelsohn@gnu.org>
+
+       PR target/35483
+       * Make-lang.in (class.o): Depend on $(TM_P_H).
+       (expr.o): Same.
+       * class.c: Include tm_p.h.
+       * expr.c: Include tm_p.h.
+
+2008-10-14  Andrew Haley  <aph@redhat.com>
+
+       * constants.c (build_constant_data_ref): Make sure we only build
+       one copy of the decl for the constant pool.
+
+2008-09-22  Andrew Haley  <aph@redhat.com>
+
+       * expr.c (rules): Add new rule for
+       gnu.java.lang.VMCPStringBuilder.toString.
+       (rewrite_rule.new_classname): New field.
+       (maybe_rewrite_invocation): Use new_classname field instead of
+       DECL_CONTEXT (*method_p).
+       Allow rewrite_arglist to be NULL.
+
+2008-09-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): Don't define.
+       (java_get_callee_fndecl): Kill.
+
+2008-09-17  Jan Hubicka  <jh@suse.cz>
+
+       PR c++/18071
+       * class.c (add_method_1): Do not initialize DECL_INLINE.
+       (make_local_function_alias): Likewise.
+       * expr.c (rewrite_arglist_getcaller): Set DECL_UNINLINABLE.
+       * lang.c (java_decl_ok_for_sibcall): Use DECL_UNINLINABLE.
+
+2008-09-09  Richard Guenther  <rguenther@suse.de>
+
+       * decl.c (build_result_decl): Remove no longer applicable
+       promotion.
+
+2008-09-05  David Daney  <ddaney@avtrex.com>
+
+       * gcj.texi (-freduced-reflection): Clarify option's restrictions.
+
+2008-08-21  David Daney  <ddaney@avtrex.com>
+
+       * class.c (make_class_data): Don't add field_index when
+       flag_reduced_reflection set.
+
+2008-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * typeck.c (convert): Do not check for TARGET_FLOAT_FORMAT.
+
+2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+
+       PR 28875
+       * lang.c (java_handle_option): Replace set_Wunused with
+       warn_unused.
+
+2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * gcj.texi: Update copyright years.  Do not list GPL as
+       Invariant Section.
+
+2008-07-29  Jakub Jelinek  <jakub@redhat.com>
+
+       * class.c (build_utf8_ref): Set DECL_SIZE and DECL_SIZE_UNIT
+       from ctype's sizes.
+
+       * class.c (build_utf8_ref): Pad initializer string to utf8const_type's
+       alignment.
+
+2008-07-29  Jan Hubicka  <jh@suse.cz>
+
+       * lang.c (java_post_options): Remove handling of flag_no_inline.
+
+2008-07-28  Richard Guenther  <rguenther@suse.de>
+
+       Merge from gimple-tuples-branch.
+
+       2008-07-18  Richard Guenther  <rguenther@suse.de>
+
+       * expr.c: Include tree-iterator.h.
+       * Make-lang.in (expr.o): Add tree-iterator.h dependency.
+
+       2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
+
+       * java-gimplify.c: Include gimple.h instead of tree-gimple.h.
+       * expr.c: Same.
+
+       2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
+
+       * java-gimplify.c (java_gimplify_expr): Same.
+       (java_gimplify_modify_expr): Same.
+       * java-tree.h: Rename GENERIC_NEXT to TREE_CHAIN.
+
+       2008-05-02  Diego Novillo  <dnovillo@google.com>
+
+       * expr.c (build_java_throw_out_of_bounds_exception): Fix
+       mixed declarations and code.
+
+       2008-05-02  Doug Kwan  <dougkwan@google.com>
+       
+       * expr.c (build_java_throw_out_of_bounds_exception ): Wrap call to
+       _Jv_ThrowBadArrayIndex with a COMPOUND_EXPR to return 0.
+
+       2008-02-19  Diego Novillo  <dnovillo@google.com>
+
+       http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00804.html
+
+       * java-gimplify.c (java_gimplify_self_mod_expr): Change
+       gimple_seq arguments to gimple_seq *.  Update all users.
+
+       2007-11-26  Aldy Hernandez  <aldyh@redhat.com>
+
+       * java-gimplify.c (java_gimplify_expr): Make pre_p and post_p
+       sequences.
+       (java_gimplify_self_mod_expr): Same.                                    
+       * java-tree.h (java_gimplify_expr): Make pre_p and post_p               
+       sequences.
+
+2008-07-24  Jan Hubicka  <jh@suse.cz>
+
+       * java/decl.c: Include cgraph.h
+       (end_java_method): Remove non-unit-at-a-time code.
+       (java_mark_decl_local): Likewise; sanity check that we don't touch
+       finalized nodes.
+
 2008-07-15  Jan Hubicka  <jh@suse.cz>
 
        * lang.c (java_init_options): Enable unit-at-a-time by default.
        NEGATIVE and then a POINTER_PLUS_EXPR instead
        of a MINUS_EXPR.
 
-2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
+2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
 
        * typeck.c (java_signed_type): Remove.
        * lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
        * jcf-dump.c (HANDLE_MAGIC): Use 'unsigned long' for %lx.
        (print_constant): Likewise.
 
-2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
+2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
 
        * expr.c (build_java_binop): Use unsigned_type_for instead of
        java_unsigned_type.
        * jcf-parse.c (give_name_to_class): Don't set input_location from
        DECL_ARTIFICIAL decls.
 
-2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
+2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
 
        * typeck.c (java_signed_or_unsigned_type): Removed.
        (java_signed_type): use get_signed_or_unsigned_type instead of
        * jcf-path.c (jcf_path_compute): New function.
        * jcf.h (jcf_path_compute): Declare.
 
-2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
+2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * decl.c: Include langhooks.h.
        (builtin_function): Remove.
        * jv-scan.c (version), jcf-dump.c (version), gjavah.c (version):
        Update copyright notice dates.
 
-2006-01-16  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+2006-01-16  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * jvspec.c (lang_specific_spec_functions): Remove.
 
        * expr.c (build_field_ref): Add in-line check for missing field.
        * decl.c (java_init_decl_processing): Add soft_nosuchfield_node.
 
-2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * Make-lang.in (java.all.build, java.install-normal): Remove.
 
-2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
+2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * Make-lang.in: Remove all dependencies on s-gtype, except for
        gt-java-parse.h.
        properly initialize `finished_label'. Don't emit gotos for empty
        try statements.
 
-2000-03-19  Martin v. Loewis  <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.
 
        (build_current_thisn): Likewise.
        (patch_method_invocation): Likewise.
 
-2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
+2000-03-01  Martin von Löwis  <loewis@informatik.hu-berlin.de>
 
        * decl.c (current_function_decl): Move to toplev.c.
 
        (expand_java_return): Handle the case of a native integer smaller
        than a JVM integer.
 
-2000-02-18  Martin von Loewis  <loewis@informatik.hu-berlin.de>
+2000-02-18  Martin von Löwis  <loewis@informatik.hu-berlin.de>
 
        * gjavah.c (help): Use GCCBUGURL.
        * jv-scan.c (help): Likewise.
@@ -21478,3 +21931,11 @@ Tue Mar  9 11:52:08 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 1996-10-24  Per Bothner  <bothner@deneb.cygnus.com>
 
        New directory.
+
+\f
+Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+
+Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.