OSDN Git Service

* parse.y (jdep_resolve_class): Only check deprecation if we found
[pf3gnuchains/gcc-fork.git] / gcc / java / ChangeLog
index bdb9917..3bd47c7 100644 (file)
@@ -1,3 +1,173 @@
+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.