OSDN Git Service

* jcf-parse.c (yyparse): Set/reset input_filename for source file.
[pf3gnuchains/gcc-fork.git] / gcc / java / ChangeLog
index 222509a..31c4d4c 100644 (file)
@@ -1,3 +1,177 @@
+2001-03-15  Per Bothner  <per@bothner.com>
+
+       * jcf-parse.c (yyparse):  Set/reset input_filename for source file.
+       * parse.y (java_expand_classes):  Likewise.
+       
+       * parse.y (expand_start_java_method):  Was only called once and had a
+       misleading name, so inline in caller java_complete_expand_method.
+       (enter_a_block):  Likewise inline in enter_block and remove.
+
+       Remove junk from when gcc/java was created (by copying from C/C++).
+       * decl.c (keep_next_level_flag, keep_next_if_subblocks):  Remove.
+       (struct binding_level):  Remove fields keep, keep_if_subblocks,
+       more_cleanups_ok, have_cleanups (which have never been used).
+       (pushlevel, poplevel):  Remove related useless code.
+
+       * class.c (make_class_data):  The class_dtable_decl (i.e. the
+       vtable for Class) should be external, except when compiling Class.
+
+       * jvspec.c (lang_specific_driver):  Fix -C handling.
+       Check -save-temps to see if temp @FILE should be deleted.
+       Follow-up to/fix for February 16 patch.
+
+       * verify.c (verify_jvm_instructions):  Better error msgs for dup.
+       (type_stack_dup):  Remove no-longer neded error check.
+
+2001-03-15  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * mangle.c (mangle_record_type): Rename 'from_pointer' argument
+       to 'for_pointer'. If this type is for a pointer (argument) mangling,
+       don't surround the element with 'N..E' if the type name is 
+       unqualified.
+
+2001-03-14  Mark Mitchell  <mark@codesourcery.com>
+
+       * class.c (build_static_field_ref): Use COPY_DECL_RTL,
+       DECL_RTL_SET_P, etc.
+       (make_method_value): Likewise.
+       (get_dispatch_table): Likewise.
+
+       * decl.c (push_jvm_slot): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
+       
+2001-03-07  Tom Tromey  <tromey@redhat.com>
+
+       * config-lang.in (lang_requires): Define.
+
+2001-03-07  Brad Lucier  <lucier@math.purdue.edu>
+
+       * typeck.c (convert): Check flag_unsafe_math_optimizations,
+       not flag_fast_math.
+
+2001-03-05  Per Bothner  <per@bothner.com>
+
+       Fix a problem where rest_of_decl_compilation applied to
+       class_dtable_decl causes problems because it was done too early,
+       before output file was opened.
+       * decl.c (init_decl_processing):  Remove init of class_dtable_decl.
+       * class.c (class_dtable_decl):  Add macro - element of class_roots.
+       (make_class_data):  Define class_dtable_decl.
+       * java-tree.h (JTI_CLASS_DTABLE_DECL, class_dtable_decl):  Removed.
+
+2001-03-01  Zack Weinberg  <zackw@stanford.edu>
+
+       * java/class.c, java/decl.c, java/java-tree.h: Replace all
+       uses of 'boolean' with 'bool'.
+
+2001-03-01  Zack Weinberg  <zackw@stanford.edu>
+
+       * lang-specs.h: Add zero initializer for cpp_spec field to all
+       array elements.
+
+2001-02-16  Per Bothner  <per@bothner.com>
+
+       Handle compiling multiple input files at once, and @FILE syntax.
+       * gcj.texi:  Updated documentation to match.
+       * java-tree.h (flag_filelist_file, init_src_parse):  New declarations.
+       * jcf-parse.c (parse_source_file):  Split into ...
+       (parse_source_file_1):  New function - and:
+       (parse_source_file_2):  New function.
+       (yyparse):  On -ffilelist-file, open and scan named file.
+       On first pass over files, only do parse_source_file_1.
+       A new second pass calls parse_source_file_2 for each file to compile.
+       (init_jcf_parse):  Call init_src_parse.
+       * jvspec.c (INDIRECT_FILE_ARG):  New flag.
+       (lang_specific_driver):  Support @FILELIST-FILE syntax, as well
+       as multiple input file combined in one compilation.
+       * lang-options.h:  Add -ffilelist-file
+       * lang.c (flag_filelist_file):  New flag variable.
+       (lang_f_options):  Handle -ffilelist-file.
+       * lex.c (java_init_lex): Don't clear ctxp->incomplete_class.
+       * parse.h (struct parse_ctxt):  Remove fields incomplete_class and
+       gclass_list - use global fields of src_parse_roots instead.
+       * parse.y (src_parse_roots):  New array.
+       (incomplete_class_list, gclass_list):  New macros.
+       (push_parser_context, java_pop_parser_context,
+       java_parser_context_resume):  Don't fiddle with deleted fields.
+       (various):  Use incomplete_class gclass_list and global macros
+       instead of parse_ctxt fields - the lists are global.
+       (init_src_parse):  New function.
+
+Fri Feb 23 15:28:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
+
+2001-02-20  Alexandre Petit-Bianco  <apbianco@redhat.com>
+
+       * parse.y (check_inner_class_access): Moved declaration of local
+       `enclosing_decl_type' to the right location.
+
+2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * parse.y (parser_check_super_interface): Don't call 
+       check_pkg_class_access for an inner interface.
+       (parser_check_super): Don't call check_pkg_class_access for inner 
+       class.
+       (do_resolve_class): Simplify enclosing type loop. Don't call 
+       check_pkg_class_access if CL and DECL are not set.
+       (find_in_imports_on_demand): Set DECL if class_type needed to be
+       loaded. Don't call check_pkg_class_access for an inner class.
+       (check_inner_class_access): Rewritten to implement member access
+       rules as per spec 6.6.1.
+       (check_pkg_class_access): Handle the empty package correctly.
+       (in_same_package): New function. Determine if two classes are in the
+       same package.
+
+2001-02-18  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * typeck.c (build_java_array_type): Don't try to poke a public `clone'
+       method into array types.
+       * parse.y (patch_method_invocation): Bypass access check on clone call
+       to array instance.
+       
+2001-02-15  Alexandre Petit-Bianco  <apbianco@redhat.com>
+
+       * expr.c (build_instanceof): Check for arrays when trying fold to
+       false.
+
+2001-02-15  Jim Meyering  <meyering@lucent.com>
+
+       * Make-lang.in (java.install-common): Depend on `installdirs'.
+       (java.install-info): Likewise.
+
+2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * Make-lang.in (jvspec.o): Modify rule to match that of cp/g++spec.o.
+
+2001-02-14  Tom Tromey  <tromey@redhat.com>
+            Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       Fix for PR java/1261.
+       * typeck.c (build_java_array_type): Add public `clone' method to
+       arrays.
+       * parse.y (resolve_qualified_expression_name): Use current_class
+       when checking for inaccessibility.
+       (patch_method_invocation): Fixed error message when accessibility
+       denied.  Added `from_super' argument.
+
+2001-02-14  Alexandre Petit-Bianco  <apbianco@redhat.com>
+
+       * parse.y (resolve_class): Don't build a fake decl. Use the one
+       already built.
+       * typeck.c (build_java_array_type): Build and assign decl to array
+       type.
+
+2001-02-14  Alexandre Petit-Bianco  <apbianco@redhat.com>
+
+       * parse.y (not_accessible_p): Changed leading comment. Added extra
+       `where' argument. Use it to enforce protected access rules.
+       (resolve_qualified_expression_name): Added extra argument to
+       not_accessible_p.
+       (patch_method_invocation): Use argument `primary' to provide
+       not_accessible_p with an extra argument.
+       (lookup_method_invoke): Added extra argument to not_accessible_p.
+       (search_applicable_method_list): Likewise.
+
 2001-02-13  Alexandre Petit-Bianco  <apbianco@redhat.com>
 
        * parse.y (resolve_qualified_expression_name): Try to resolve as