OSDN Git Service

* c-decl.c (current_function_decl): Move to toplev.c.
[pf3gnuchains/gcc-fork.git] / gcc / java / ChangeLog
index 09d79d3..dcce63b 100644 (file)
@@ -1,8 +1,372 @@
+2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
+
+       * decl.c (current_function_decl): Move to toplev.c.
+
+Mon Feb 28 08:20:42 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * java-tree.h (LABEL_PC): Relect name changes in ../tree.h.
+       (DECL_BIT_INDEX): Use underlying representation.
+       * parse.h (DECL_INHERITED_SOURCE_LINE): Likewise.
+
+Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * expr.c (build_java_ret): Pass proper type to size_binop.
+
+2000-02-25  Anthony Green  <green@cygnus.com>
+
+       * expr.c (build_class_init): Mark the decl to be ignored by
+       check_init.
+       * java-tree.h (DECL_BIT_INDEX): Move definition from check-init.c
+       * check-init.c: Move DECL_BIT_INDEX to java-tree.h
+       * class.c (init_test_hash_newfunc): New function.
+       (decl_hash): New function.
+       (decl_compare): New function.
+       * decl.c (emit_init_test_initialization): New function.
+       (complete_start_java_method): Traverse the init test hashtable,
+       calling emit_init_test_initialization.
+       (always_initialize_class_p): Define.
+       * expr.c (build_class_init): Use initialization tests when
+       emitting class initialization code.
+       (always_initialize_class_p): Declare.
+       * jcf-parse.c (parse_class_file): Set always_initialize_class_p to
+       1.
+       * java-tree.h: Include hash.h.
+       (DECL_FUNCTION_INIT_TEST_TABLE): Define.
+       (struct lang_decl): Add init_test_table field.
+       (init_test_hash_entry): Define.
+
+Fri Feb 25 18:41:31 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * gjavah.c (main): Avoid using `argi' to report unimplemented
+       options.
+
+Fri Feb 25 18:47:25 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR:
+       initialize locals to avoid warnings. Local `exception_type' moved
+       into if statement.
+
+Fri Feb 25 18:00:37 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * parse.y (resolve_expression_name): Use `orig' as a second
+       argument to resolve_field_access.
+       (resolve_field_access): Removed unecessary code when dealing with
+       static fields.
+
+2000-02-23  Tom Tromey  <tromey@cygnus.com>
+
+       * gjavah.c (print_name): In JNI case, correctly quote string.
+       (print_method_info): Don't handle overrides in JNI mode.
+
+2000-02-22  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * parse.y (init_decl_processing): `_Jv_IsInstanceOf' returned
+       value type set to `boolean_type_node'.
+
+Mon Jan 18 14:30:09 2000  Joerg Brunsmann  <joerg.brunsmann@fernuni-hagen.de>
+
+       * jcf-dump.c (main): Test for correct condition after
+       output file creation.
+
+2000-02-19  Anthony Green  <green@cygnus.com>
+
+       * jcf-depend.c (add_entry): Fix test for first list entry.
+
+Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * class.c (build_class_ref, push_super_field): Set DECL_SIZE_UNIT.
+       * constants.c (build_constants_constructor): Likewise.
+
+2000-02-19  Anthony Green  <green@cygnus.com>
+
+       * jcf-depend.c (add_entry): Add entries to the end of the list.
+
+Wed Nov 03 02:16:00 PST 1999  Pekka Nikander  <pekka.nikander@hut.fi>
+
+       * decl.c (INT_TYPE_SIZE): Define if necessary.
+       (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>
+
+       * gjavah.c (help): Use GCCBUGURL.
+       * jv-scan.c (help): Likewise.
+       * jcf-dump.c (help): Likewise.
+
+Thu Feb 17 14:30:37 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * jcf-write.c (generate_bytecode_insns): Don't generate empty
+       `finally' clauses.
+
+Thu Feb 17 13:20:58 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * jcf-parse.c (load_class): Call `fatal' if no file containing
+       the target class are found.
+
+2000-02-16  Zack Weinberg  <zack@wolery.cumb.org>
+
+       * Makefile.in (PARSE_C, PARSE_SCAN_C): Move dependencies on
+       lex.c, lex.h, and PARSE_H to...                            
+       (parse.o, parse-scan.o): ...here, respectively.
+
+       * lex.c: Split out code that may trigger SIGFPE from yylex()
+       to its own function.
+       * lex.h (JAVA_FLOAT_RANGE_ERROR): Don't set value.
+
+2000-02-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
+
+2000-02-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * lex.c (java_parse_doc_section): Alway unget the last unicode
+       when returning 0.
+       (java_lex): Call java_parse_end_comment with fetched unicode.
+
+2000-02-15  Tom Tromey  <tromey@cygnus.com>
+
+       * gjavah.c (jni_print_char): New function.
+       (print_full_cxx_name): Use it.
+       (decode_signature_piece): Likewise.
+       (print_cxx_classname): Likewise.
+
+2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (jv-scan, jcf-dump, gcjh): Depend on and link with
+       version.o.
+       (jcf-dump.o, gjavah.o, jv-scan.o): Depend on version.h.
+
+       * gjavah.c: Include version.h.
+       
+       * jcf-dump.c: Likewise.
+
+       * jv-scan.c: Likewise.
+
+2000-02-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * except.c (check_start_handlers): Re-add prototype lost in last
+       patch.
+       (maybe_start_try): Remove excess argument to `check_start_handlers'.
+
+2000-02-09  Andrew Haley  <aph@cygnus.com>
+
+       * decl.c (clear_binding_level): Remove excess initializer.
+       (maybe_poplevels): Remove unused variable.
+       (force_poplevels): Ditto.
+       (struct binding_level): Add comment.
+       
+2000-01-25  Andrew Haley  <aph@cygnus.com>
+
+        * java-except.h (struct eh_range): Add `expanded' field.
+        (maybe_start_try): Add end_pc arg.
+        (maybe_end_try): Ditto.
+       * java-tree.h (force_poplevels): new function.
+        * expr.c (expand_byte_code): Don't call maybe_start_try or
+        maybe_end_try.
+        * except.c (add_handler): Reset expanded.
+        (expand_start_java_handler): Set expanded.
+        (check_start_handlers): Don't expand a start handler that's
+        already been expanded.
+        (maybe_start_try): Add end_pc arg.  Only expand a handler which
+        ends after end_pc.
+       (expand_end_java_handler): call force_poplevels.
+       (force_poplevels): new function.
+        * decl.c (binding_level): Add start_pc of binding level.
+        (maybe_pushlevels): Call maybe_start_try when pushing binding
+        levels.
+        (maybe_poplevels): Call maybe_end_try when popping binding levels.
+        (LARGEST_PC): Define.
+        (clear_binding_level): Use LARGEST_PC.
+
+       * java-tree.h (DEBUG_JAVA_BINDING_LEVELS): new define.
+       * decl.c (DEBUG_JAVA_BINDING_LEVELS): new define.
+       (binding_depth, is_class_level, current_pc): new variables.
+        (struct binding_level): ditto.
+       (indent): new function.
+       (push_jvm_slot): add debugging info.
+       (maybe_pushlevels): ditto.
+       (maybe_poplevels): ditto.
+       (pushlevel): ditto.
+       (poplevel): ditto.
+       (start_java_method): ditto.
+       (give_name_to_locals): comment only.
+       * except.c (binding_depth, is_class_level, current_pc): 
+       new variables.
+       (expand_start_java_handler): add debugging info.
+       (expand_end_java_handler): ditto.
+       
+2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * gjavah.c (overloaded_jni_method_exists_p): Add prototype.
+       (print_name_for_stub_or_jni, process_file): Constify a char*.
+
+2000-02-03  Tom Tromey  <tromey@cygnus.com>
+
+       * jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input.
+
+2000-01-31  Scott Bambrough  <scottb@netwinder.org>
+
+       * gcc/java/javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to
+       assemble doubles correctly when HOST_FLOAT_WORDS_BIG_ENDIAN is
+       defined to be 1.
+
+2000-02-03  Tom Tromey  <tromey@cygnus.com>
+
+       * Make-lang.in (java.mostlyclean): Remove executables in
+       `mostlyclean'.
+
+2000-01-31  Scott Bambrough  <scottb@netwinder.org>
+
+       * gcc/java/gjavah.c (D_NAN_MASK): Alternate definition required when
+       HOST_FLOAT_WORDS_BIG_ENDIAN is defined to be 1.
+       (java_float_finite): Convert to use union Word from javaop.h.
+       (java_double_finite): Convert to use union DWord from javaop.h.
+
+2000-02-02  Tom Tromey  <tromey@cygnus.com>
+
+       * gjavah.c (options): Added `jni' entry.
+       (help): Document -jni.
+       (flag_jni): New global.
+       (process_file): Handle JNI output.  Don't print text from
+       -prepend, -add, etc, when generating stubs.  Only remove `.class'
+       suffix if it actually exists.
+       (main): Create a `.c' file when run with `--jni --stubs'.  Create
+       correct output file name with `--jni'.
+       (print_include): Mangle header name differently in JNI case.
+       (HANDLE_METHOD): In JNI mode, call print_method_info to generate
+       method list.
+       (print_method_info): Handle JNI case.  Put signature info into
+       method name.  Handle case when STREAM is NULL.
+       (print_name_for_stub_or_jni): New function.
+       (print_stub_or_jni): Renamed from `print_stub'.  Handle JNI.
+       (print_cxx_classname): Handle JNI.
+       (print_full_cxx_name): Likewise.
+       (decode_signature_piece): Likewise.
+       (overloaded_jni_method_exists_p): New function.
+       (struct method_name): Added `signature' and `sig_length' fields.
+       (HANDLE_END_FIELD): Do nothing in JNI mode.
+
+2000-02-02  Tom Tromey  <tromey@cygnus.com>
+
+       * jv-scan.c: Include version.c, <getopt.h>.
+       (LONG_OPT, OPT_HELP, OPT_VERSION): New macros.
+       (options): New array.
+       (usage): New function.
+       (version): New function.
+       (main): Use getopt_long to parse command line.
+       * jcf-dump.c: Include version.c, <getopt.h>.
+       (LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_VERSION,
+       OPT_JAVAP): New macros.
+       (options): New array.
+       (usage): Return `void'.  Changed message.
+       (help): New function.
+       (version): New function.
+       (main): Use getopt_long_only to parse command line.
+       * gjavah.c: Include <getopt.h>.
+       (LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_TEMP,
+       OPT_VERSION, OPT_PREPEND, OPT_FRIEND, OPT_ADD, OPT_APPEND, OPT_M,
+       OPT_MM, OPT_MG, OPT_MD, OPT_MMD): New macros.
+       (options): New array.
+       (java_no_argument): Removed.
+       (help): Updated with missing options.
+       (main): Use getopt_long_only to parse command line.
+       (usage): Changed message.
+
+2000-01-30  Anthony Green  <green@redhat.com>
+
+       * jcf-write.c (generate_bytecode_insns): Use TYPE_IS_WIDE to
+       determine how many stack slots to pop.
+
+2000-01-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * parse.y (formal_parameter:): Set `$$' to NULL_TREE for better
+       error handling/recovery.
+       * java-tree.h (SYNCHRONIZED_EXPR): Fixed typo in comment.
+
+2000-01-27  Andrew Haley  <aph@cygnus.com>
+
+        * jcf-write.c (emit_goto): RESERVE 3 bytes for insn.
+        (emit_if): Ditto.
+        (emit_jsr): Ditto.
+
+2000-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string
+       concatenation.
+       (OBSOLETE_MODIFIER_WARNING2): New macro allowing two args.
+
+       * parse.y (register_fields): Don't pass a format specifier to
+       OBSOLETE_MODIFIER_WARNING.
+       (check_abstract_method_header): Use OBSOLETE_MODIFIER_WARNING2
+       instead of OBSOLETE_MODIFIER_WARNING, and don't pass a format
+       specifier.
+       (check_modifiers): Change function into a macro.
+       (check_class_interface_creation): Pass a literal format string.
+
+2000-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * buffer.h: PROTO -> PARAMS.
+       * check-init.c: Likewise.
+       * class.c: Likewise.
+       * constants.c: Likewise.
+       * convert.h: Likewise.
+       * decl.c: Likewise.
+       * except.c: Likewise.
+       * expr.c: Likewise.
+       * gjavah.c: Likewise.
+       * java-except.h: Likewise.
+       * java-tree.h: Likewise.
+       * jcf-depend.c: Likewise.
+       * jcf-dump.c: Likewise.
+       * jcf-parse.c: Likewise.
+       * jcf-path.c: Likewise.
+       * jcf-reader.c: Likewise.
+       * jcf-write.c: Likewise.
+       * jcf.h: Likewise.
+       * jv-scan.c: Likewise.
+       * jvgenmain.c: Likewise.
+       * jvspec.c: Likewise.
+       * lang.c: Likewise.
+       * lex.c: Likewise.
+       * lex.h: Likewise.
+       * parse-scan.y: Likewise.
+       * parse.h: Likewise.
+       * parse.y: Likewise.
+       * typeck.c: Likewise.
+       * verify.c: Likewise.
+       * xref.c: Likewise.
+       * xref.h: Likewise.
+       * zextract.c: Likewise.
+       * zipfile.h: Likewise.
+
+Mon Jan 18 14:30:09 2000  Joerg Brunsmann  <joerg.brunsmann@fernuni-hagen.de>
+
+       * gjavah.c: Delete ACC_VISIBILITY define.
+       * jcf.h: Add ACC_VISIBILITY define.
+       * parse.y: final: rule tagged <value>.
+       (java_check_regular_methods): Use ACC_VISIBILITY define for
+       default package access check.
+       (local_variable_declaration_statement): Use final: rule.
+
+Mon Jan 17 11:58:17 2000  Joerg Brunsmann  <joerg.brunsmann@fernuni-hagen.de>
+
+       * parse.y (format_parameter:): Use final: rule instead of modifiers:.
+       (final:): New rule.
+
+2000-01-17  Tom Tromey  <tromey@cygnus.com>
+
+       * gjavah.c (print_field_info): Allow non-static final fields.
+
 2000-01-16  Anthony Green  <green@cygnus.com>
 
        * parse.y (build_string_concatenation): Only use
        StringBuffer(String) shortcut if String arg is constant.
 
+Wed Jan 12 20:20:11 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * jcf-write.c (generate_bytecode_insns): binop: Change the type of
+       the shift value to int. Fixed typo in comment.
+
 2000-01-11  Mumit Khan  <khan@xraylith.wisc.edu>
 
        * jcf-path.c: Delete PATH_SEPARATOR and DIR_SEPARATOR macros.
@@ -523,6 +887,10 @@ Thu Sep  9 17:33:28 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * class.c (finish_class): We're now outside a valid method
        declaration. Tell the rest of gcc so.
 
+1999-09-08  Bruce Korb  autogen@linuxbox.com
+
+       * Makefile.in: Give the gperf user a hint about why "gperf -F" fails.
+
 1999-09-07  Tom Tromey  <tromey@cygnus.com>
 
        * gjavah.c (add_class_decl): Generate include for gcj/array.h, not