OSDN Git Service

* parse.y (jdep_resolve_class): Only check deprecation if we found
[pf3gnuchains/gcc-fork.git] / gcc / java / ChangeLog
index de4370d..3bd47c7 100644 (file)
@@ -1,3 +1,402 @@
+2003-03-01  Tom Tromey  <tromey@redhat.com>
+
+       * parse.y (jdep_resolve_class): Only check deprecation if we found
+       a decl.
+
+2003-02-28  Tom Tromey  <tromey@redhat.com>
+
+       PR java/9695:
+       * class.c (maybe_layout_super_class): Always pass a WFL to
+       do_resolve_class.
+       * parse.y (do_resolve_class): Updated comment to explain
+       parameters.
+
+2003-02-26  Tom Tromey  <tromey@redhat.com>
+
+       * jcf-write.c (generate_classfile): Check whether class is
+       deprecated before writing attribute count.
+
+2003-02-25  Roger Sayle  <roger@eyesopen.com>
+
+       * java/decl.c (java_init_decl_processing): Get soft_fmod_node from
+       built_in_decls[BUILT_IN_FMOD] rather than define it ourselves.
+2003-02-23  Tom Tromey  <tromey@redhat.com>
+
+       * lang-options.h: Added -Wdeprecated.
+       * gcj.texi (Warnings): Document -Wdeprecated.
+       * java-tree.h (flag_deprecated): Declare.
+       * lang.c (lang_W_options): Added deprecated.
+       (flag_deprecated): New global.
+       * chartables.h: Rebuilt.
+       * gen-table.pl (process_one): Look at whitespace.
+       (print_tables): Define LETTER_SPACE, LETTER_MASK.
+       * parse.h (CLEAR_DEPRECATED): New macro.
+       (CHECK_DEPRECATED_NO_RESET): New macro.
+       * jcf-parse.c (handle_deprecated): New function.
+       (HANDLE_DEPRECATED_ATTRIBUTE): New define.
+       * jcf-reader.c (get_attribute): Handle Deprecated attribute.
+       * parse.y (resolve_type_during_patch): Check deprecation.
+       (jdep_resolve_class): Likewise.
+       (process_imports): Likewise.
+       (resolve_expression_name): Likewise.
+       (check_deprecation): Strip arrays from decl.  Check
+       flag_deprecated.
+       (patch_method_invocation): Also check the particular constructor
+       for deprecation.
+       (register_fields): Use CHECK_DEPRECATED_NO_RESET in loop.
+       * jcf-write.c (append_deprecated_attribute): New function.
+       (generate_classfile): Generate deprecated attribute when
+       appropriate.
+       * lex.c (java_parse_doc_section): Return type now void.  Rewrote.
+       (java_lex) [case '*']: Simplify logic.
+       (java_start_char_p): Use LETTER_MASK.
+       (java_part_char_p): Likewise.
+       (java_space_char_p): New function.
+
+2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
+
+       Change base class access representation.
+       * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
+       (add_interface_do): Likewise.
+
+2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
+
+       * decl.c (java_init_decl_processing): Change 
+       soft_lookupjnimethod_node to reflect the change in
+       signature of _Jv_LookupJNIMethod in libjava/jni.cc
+       * expr.c (build_jni_stub): Calculate and pass the size
+       on the stack of the arguments to a JNI function. Use
+       new target macro MODIFY_JNI_METHOD_CALL to allow a 
+       target to modify the call to a JNI method.
+
+2003-02-08  Roger Sayle  <roger@eyesopen.com>
+
+       * jcf-io.c (java_or_class_file): Use libiberty's lbasename
+       instead of basename to avoid compiler warnings on Tru64.
+
+2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
+
+       * gcj.texi: Update to GFDL 1.2.
+
+2003-01-31  Andrew Haley  <aph@redhat.com>
+
+       * parse.y (java_expand_classes): Scan the whole class list looking
+       for access methods that haven't yet been expanded.
+
+2003-01-31 Adrian Bunk <bunk@fs.tum.de>
+
+       Fix for java/4269:
+
+       * jv-scan.c: Use HAVE_LANGINFO_CODESET instead of HAVE_NL_LANGINFO
+       to fix bootstrap on sparc-unknown-netbsdelf1.5.
+       * jcf-parse.c: Likewise.
+
+2003-01-31  Mark Wielaard  <mark@klomp.org>
+
+       * gjavah.c (throwable_p): Allocate 1 more byte for string.
+
+2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * class.c (make_class): Use BINFO_ELTS.
+       (set_super_info): Likewse.
+       (add_interface_do): Likewise.
+
+2003-01-30  Tom Tromey  <tromey@redhat.com>
+
+       * jcf-parse.c (read_class): Update identifier's class value if it
+       changed during parsing.
+
+2003-01-30  Loren James Rittle  <ljrittle@acm.org>
+
+       * Make-lang.in (po-generated): Find the targets in $(parsedir).
+       Propagate change to all other rules as required.
+       (java/parse-scan.o): Add explicit dependency on
+       $(parsedir)/java/parse-scan.c .
+
+2003-01-29  Tom Tromey  <tromey@redhat.com>
+
+       * parse.y (patch_assignment): Only transform the rhs of an
+       assignment when compiling to native.
+
+2003-01-28  Tom Tromey  <tromey@redhat.com>
+
+       * jcf-write.c (generate_bytecode_conditional): Typo fixes.
+
+2003-01-28  Tom Tromey  <tromey@redhat.com>
+
+       * lex.c (java_lex): Don't include UEOF as part of token.
+       (java_read_unicode): Error if \u sequence prematurely terminated.
+
+2003-01-27  Tom Tromey  <tromey@redhat.com>
+
+       * parse.y (java_check_regular_methods): Check for construct after
+       checking types in throws clause.
+
+2003-01-24  Tom Tromey  <tromey@redhat.com>
+
+       * class.c (build_static_field_ref): Only a String or numeric field
+       can fold to a constant.
+
+2003-01-23  Tom Tromey  <tromey@redhat.com>
+
+       * jcf-parse.c (parse_zip_file_entries): Overwrite trailing \0 of
+       file name in resource buffer.
+
+2003-01-23  Tom Tromey  <tromey@redhat.com>
+
+       * expr.c (build_known_method_ref): Use method's context to find
+       method table index.
+
+2003-01-23  Tom Tromey  <tromey@redhat.com>
+
+       * constants.c (set_constant_entry): Allocated cleared memory.
+
+2003-01-22  Tom Tromey  <tromey@redhat.com>
+
+       * java-tree.h: Don't use PARAMS.
+       * resource.c: Add prototypes for all functions.
+       (write_resource_constructor): Use `const char *' to avoid
+       warning.
+
+2003-01-22 Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       * jcf-parse.c (process_zip_dir): Remove unused variable.
+
+2003-01-22  Tom Tromey  <tromey@redhat.com>
+
+       * expr.c (build_invokeinterface): Abort if method's context is not
+       an interface.
+
+2003-01-22  Tom Tromey  <tromey@redhat.com>
+
+       * gcj.texi (Input and output files): Mention non-class entries.
+       * decl.c (java_init_decl_processing): Call
+       init_resource_processing.
+       * java-tree.h (compile_resource_data, write_resource_constructor,
+       compile_resource_file, init_resource_processing): Declare.
+       * config-lang.in (gtfiles): Added resource.c.
+       * Make-lang.in (gt-java-resource.h): New target.
+       (JAVA_OBJS): Added resource.o.
+       (java/resource.o): New target.
+       * resource.c: New file.
+       * class.c (compile_resource_file): Moved to resource.c.
+       (registerResource_libfunc): Likewise.
+       (utf8_decl_list): Mark with GTY; now static.
+       * jcf-parse.c (classify_zip_file): New function.
+       (parse_zip_file_entries): Use it; compile .properties files.
+       (process_zip_dir): Use classify_zip_file and compute_class_name.
+       Don't write class name into zip directory.
+       (java_parse_file): Call write_resource_constructor.
+       (compute_class_name): New function.
+       * jcf-io.c (read_zip_member): Reindented.
+
+2003-01-21  Tom Tromey  <tromey@redhat.com>
+
+       * class.c (supers_all_compiled): New function.
+       (make_class_data): Use it.
+
+2003-01-21  Tom Tromey  <tromey@redhat.com>
+
+       * parse.y (method_header): Native method can't be strictfp.
+       No method can be transient or volatile.
+
+2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       Make-lang.in (jvspec.o-warn): Add -Wno-error.
+
+2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * check-init.c: Fix comment typos.
+       * class.c: Likewise.
+       * constants.c: Likewise.
+       * decl.c: Likewise.
+       * except.c: Likewise.
+       * expr.c: Likewise.
+       * java-except.h: Likewise.
+       * java-tree.h: Likewise.
+       * javaop.h: Likewise.
+       * jcf-dump.c: Likewise.
+       * jcf-io.c: Likewise.
+       * jcf-parse.c: Likewise.
+       * jcf-write.c: Likewise.
+       * lang.c: Likewise.
+       * mangle.c: Likewise.
+       * typeck.c: Likewise.
+       * verify.c: Likewise.
+
+2003-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Make-lang.in (java/jcf-write.o): Depend on $(TM_P_H).
+       * jcf-write.c: Include "tm_p.h".
+
+2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * jcf-io.c (caching_stat): Cast the 3rd arg of scandir to void*.
+
+2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * builtins.c (java_build_function_call_expr): Renamed from
+       build_function_call_expr.  All callers changed.
+
+       * Make-lang.in (java/jcf-parse.o): Depend on $(TM_P_H).
+       * jcf-parse.c: Include tm_p.h.
+
+       * jcf-write.c (generate_bytecode_insns): Avoid signed/unsigned
+       warning.
+
+2003-01-14  Tom Tromey  <tromey@redhat.com>
+
+       * class.c (make_class_data): Check that super is compiled before
+       building class reference to it.
+
+2003-01-14  Andrew Haley  <aph@redhat.com>
+
+       * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a
+        varargs function -- correct.
+
+2003-01-14  Andrew Haley  <aph@redhat.com>
+
+       * decl.c (java_init_decl_processing): Temporarily back out previous patch.
+
+2003-01-14  Andrew Haley  <aph@redhat.com>
+
+       * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a
+       varargs function -- correct.
+
+       * parse.y (patch_assignment): Copy the rhs of an assignment into a
+       temporary if the RHS is a reference.
+
+2003-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf.
+       * keyword.h: Regenerated.
+
+       * All Files: Convert to ISO C style function definitions.
+
+2003-01-09  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       * parse.y (check_pkg_class_access): ANSIfy definition.
+
+2003-01-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * decl.c, parse-scan.y, parse.y: Don't cast return value of
+       xmalloc et al.
+
+       * class.c, gjavah.c, parse.y, verify.c: Don't use PTR.
+
+2003-01-09  Geoffrey Keating  <geoffk@apple.com>
+
+       Merge from pch-branch:
+
+       2002-12-02  Geoffrey Keating  <geoffk@apple.com>
+
+       * Make-lang.in (java/gjavah.o): Update dependencies.
+       * gjavah.c: Include ggc.h.
+
+       2002-08-16  Geoffrey Keating  <geoffk@redhat.com>
+
+       * Make-lang.in (GCJH_OBJS): Add ggc-none.o.
+       (JCFDUMP_OBJS): Add ggc-none.o.
+       (java/jcf-dump.o): Depend on GGC_H.
+       * jcf-reader.c (jcf_parse_constant_pool): Use ggc_alloc to allocate
+       CPool substructures.
+       * jcf-parse.c (process_zip_dir): Use ggc_alloc to allocate JCFs.
+       * jcf-dump.c: Include ggc.h.
+
+       2002-08-08  Geoffrey Keating  <geoffk@redhat.com>
+
+       * jcf.h (union cpool_entry): New.
+       (struct CPool): Use gengtype to mark.  Change field 'data' to be
+       an array of unions.
+       (struct JCF): Use gengtype to mark.
+       (CPOOL_UINT): Update for new cpool_entry type.
+       (CPOOL_USHORT1): Likewise.
+       (CPOOL_USHORT2): Likewise.
+       (CPOOL_FINISH): Use GC to free cpool subfields.
+       * parse.h (struct parser_ctxt): Mark field current_jcf.
+       * lex.c (java_init_lex): Use GC to allocate struct JCF.
+       * jcf-parse.c (HANDLE_CONSTANT_Utf8): Update for new cpool_entry type.
+       (main_jcf): Use gengtype to mark.
+       (ggc_mark_jcf): Delete.
+       (get_constant): Update for new cpool_entry type.
+       (give_name_to_class): Likewise.
+       (get_class_constant): Likewise.
+       (init_outgoing_cpool): Use GGC to allocate struct CPool.
+       (java_parse_file): Use GGC to allocate struct JCF.
+       (init_jcf_parse): Don't call ggc_add_root.
+       * jcf-reader.c (jcf_parse_constant_pool): Update for new
+       cpool_entry type.
+       * java-tree.h (current_jcf): Use gengtype to mark.
+       (CPOOL_UTF): Update for new cpool_entry type.
+       (outgoing_cpool): Use gengtype to mark.
+       (struct lang_type): GC struct JCF and struct CPool.
+       * config-lang.in (gtfiles): Add jcf.h.
+       * constants.c (find_tree_constant): New.
+       (set_constant_entry): Allocate cpool subfields using GGC.  Update
+       for new cpool_entry type.
+       (find_constant1): Update for new cpool_entry type.
+       (find_constant2): Likewise.
+       (find_utf8_constant): Use find_tree_constant.
+       (find_class_or_string_constant): Remove unnecessary cast to jword.
+       Update for new cpool_entry type.
+       (count_constant_pool_bytes): Update for new cpool_entry type.
+       (write_constant_pool): Likewise.
+       (alloc_name_constant): Use find_tree_constant.
+       (build_constants_constructor): Update for new cpool_entry type.
+
+       2002-08-08  Geoffrey Keating  <geoffk@redhat.com>
+
+       * parse.y (mark_parser_ctxt): Delete.
+       (goal): Don't use ggc_add_root.
+       (create_new_parser_context): Use GC to allocate struct parser_ctxt.
+       (java_pop_parser_context): Let GC free parser_ctxt.
+       (java_parser_context_resume): Likewise.
+       * parse.h (struct parser_ctxt): Use gengtype to mark.
+       (ctxp): Likewise.
+       (ctxp_for_generation): Likewise.
+       * lex.h (struct java_lc_s): Mark for gengtype.
+       (java_lexer): Rearrange for gengtype.
+       * config-lang.in (gtfiles): Add lex.h, parse.h.
+
+2003-01-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * All Files: Remove PARAMS macro.
+
+       * expr.c, gjavah.c, javaop.h, jcf-dump.c, jcf-io.c, jcf-reader.c,
+       jcf-write.c, jcf.h, jv-scan.c: Don't rely on the `DEFUN', `AND' or
+       `__STDC__' macros.
+
+       * jv-scan.c, parse.y: Remove VPARAMS, VA_OPEN, VA_FIXEDARG and
+       VA_CLOSE.
+
+2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
+
+       * Make-lang.in (java.install-common, java.uninstall,
+       java.install-info, java.install-man): Prepend $(DESTDIR)
+       to destination paths in all (un)installation commands.
+       (java.install-common): Rewrite $(LN) command to support
+       DESTDIR with "ln" as well as with "ln -s".
+
+2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       * java-tree.h: Protect against multiple inclusion.
+
+2003-01-07  Tom Tromey  <tromey@redhat.com>
+
+       * class.c (add_assume_compiled): Don't adjust parent if we're
+       already at the root of tree.
+
+2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * lang.c (dump_compound_expr): Prototype.
+
+2003-01-03  Tom Tromey  <tromey@redhat.com>
+
+       Fix for PR java/8712:
+       * expr.c (build_instanceof): Build an NE_EXPR, not a COND_EXPR,
+       when simply checking against `null'.
+
 2003-01-03  Tom Tromey  <tromey@redhat.com>
 
        * gcj.texi (Standard Properties): Document http.proxyHost and