aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
2000-07-20ChangeLog to fixes to gcj/242, gcj/249, gcj/239, gcj/225 and gcj/256:Alexandre Petit-Bianco1-0/+37
http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00801.html From-SVN: r35159
2000-07-20[multiple changes]Alexandre Petit-Bianco3-24/+88
2000-07-13 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (patch_method_invocation): Fixed comment. (maybe_use_access_method): Build this$<n>s to the context of the target method, or a type that extends it. Fixes gcj/242. 2000-07-13 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (not_accessible_p): Access granted to innerclasses (indirectly) extending the reference type. Fixes gcj/249. 2000-07-10 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (resolve_qualified_expression_name): Verify qualified access to `this.' Fixes gcj/239. 2000-07-10 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (set_super_info): Handled protected inner classes. (common_enclosing_context_p): Bail early if arguments aren't both inner classes. (get_access_flags_from_decl): Handle private and protected inner classes. * java-tree.h (TYPE_PROTECTED_INNER_CLASS): New macro. (CLASS_PROTECTED): Likewise. (struct lang_type): New bitfield `poic.' * parse.y (jdep_resolve_class): Call check_inner_class_access on inner classes only. (check_inner_class_access): Renamed arguments, added comments. Handles protected inner classes (fixes gcj/225) (not_accessible_p): Fixed comments. Avoid handling inner classes. 2000-07-07 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (resolve_qualified_expression_name): Handle inner class access. Fixes gcj/256. (Fixes gcj/242, gcj/249, gcj/239, gcj/225 and gcj/256: http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00801.html) From-SVN: r35156
2000-07-19lang-specs.h: Added %(jc1) to java compiler options.Jeff Sturm2-1/+5
2000-07-18 Jeff Sturm <jeff.sturm@appnet.com> * lang-specs.h: Added %(jc1) to java compiler options. From-SVN: r35130
2000-07-14top level:Zack Weinberg2-0/+6
* .cvsignore: Correct typo. cp: * .cvsignore: parse.h and parse.c have no cp- prefix. java: * .cvsignore: New file. From-SVN: r35031
2000-07-14* parse.c: Remove.Mark Mitchell2-17653/+4
From-SVN: r35029
2000-07-13parse.y (fold_constant_for_init): Avoid bullish conversion.Alexandre Petit-Bianco3-8/+6
2000-07-13 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (fold_constant_for_init): Avoid bullish conversion. (http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00506.html) From-SVN: r35022
2000-07-13Reverting incorrectly applied changeTom Tromey1-22/+2
From-SVN: r35021
2000-07-13* lang-specs.h: Added %{I*}.Tom Tromey3-3/+27
From-SVN: r35018
2000-07-13gcc.c (do_spec_1): Add new %B operator.Zack Weinberg2-16/+12
* gcc.c (do_spec_1): Add new %B operator. (set_input): Prepare for %B. (link_command_spec): Move up with the other tm.h- overrideable specs. Factor out the portion conditional on LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc). (struct compiler): Just have a single spec string. All users updated. (default_compilers): Remove unnecessary braces. (static_specs): Update. (trad_capable_cpp, cpp_options, cc1_options, asm_options): New named specs. (C and assembly specs): Use the new named specs, as appropriate. * objc/lang-specs.h, ch/lang-specs.h, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h: Use the new named specs. Remove unnecessary braces. From-SVN: r35008
2000-07-12gcc_update (files_and_dependencies): Remove generated YACC files.Mark Mitchell2-2571/+4
* gcc_update (files_and_dependencies): Remove generated YACC files. * c-parse.c: Remove. * c-parse.h: Likewise. * c-parse.y: Likewise. * objc/objc-parse.c: Likewise. * objc/objc-pasre.y: Likewise. * Makefile.in ($(PARSE_H)): Depend directly on parse.y. * parse.c: Remove. * parse.h: Likewise. * parse-scan.c: Remove. From-SVN: r34982
2000-07-10Fixing a really lame patch. Sorry for the ChangeLog tweaking.)Alexandre Petit-Bianco2-3/+4
From-SVN: r34954
2000-07-07parse.y (generate_classfile): Exclude null strings.Alexandre Petit-Bianco2-1/+6
2000-07-07 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (generate_classfile): Exclude null strings. (http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00233.html) From-SVN: r34923
2000-07-07jcf-write.c (generate_classfile): Properly install the ConstantValue ↵Alexandre Petit-Bianco4-5/+17
attribute and the initial value constant... 2000-07-07 Alexandre Petit-Bianco <apbianco@cygnus.com> * jcf-write.c (generate_classfile): Properly install the ConstantValue attribute and the initial value constant pool index on string constants. * parse.y (java_complete_lhs): Keep DECL_INITIAL when emitting class files. (http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00233.html) From-SVN: r34921
2000-07-06[multiple changes]Alexandre Petit-Bianco5-40/+102
2000-07-06 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.h (BUILD_PTR_FROM_NAME): Surround with a do/while construct. * parse.y (find_as_inner_class): Fixed typo. (do_resolve_class): Explore enclosing contexts when searching for innerclasses. Removed curly brackets around BUILD_PTR_FROM_NAME. (check_inner_class_access): Check `decl' which can be null in case of previous errors. 2000-07-05 Alexandre Petit-Bianco <apbianco@cygnus.com> * java-tree.h (java_debug_context): Declared `extern.' (safe_layout_class): Likewise. * parse.y (resolve_field_access): Field must be `static' in order to be replaced by its initial value. Added comments. (find_applicable_accessible_methods_list): Fixed typo. (find_most_specific_methods_list): Methods found in innerclasses take over methods founds in the enclosing contexts. (java_complete_tree): Loosen restrictions on the type of DECLs that can be replaced by their initialization values. (valid_ref_assignconv_cast_p): Removed call to `enclosing_context_p.' (http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00184.html) From-SVN: r34895
2000-07-06Java: fixes for the PRs gcj/{271,272,275}.Alexandre Petit-Bianco4-30/+32
2000-07-01 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (parser_qualified_classname): Removed parameter `is_static'. (create_interface): Removed first passed parameter to parser_qualified_classname. (create_class): Likewise. Don't install alias on static innerclasses. Fixes gcj/275. 2000-07-01 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (maybe_generate_pre_expand_clinit): Don't build a debugable statement with empty_stmt_node. Fixes gcj/272 2000-07-01 Alexandre Petit-Bianco <apbianco@cygnus.com> * expr.c (build_instanceof): Layout type after it's loaded. Fixes gcj/271. (Fix to the PR gcj/271, gcj/272 and gcj/275: http://sourceware.cygnus.com/ml/java-prs/2000-q3/msg00000.html http://sourceware.cygnus.com/ml/java-prs/2000-q3/msg00002.html http://sourceware.cygnus.com/ml/java-prs/2000-q3/msg00001.html ) From-SVN: r34894
2000-07-05Make-lang.in (PARSE_DIR): New macro.Tom Tromey3-0/+35
* Make-lang.in (PARSE_DIR): New macro. (PARSE_RELDIR): Likewise. (PARSE_C): Likewise. (PARSE_SCAN_C): Likewise. ($(PARSE_C)): New target. ($(PARSE_SCAN_C)): Likewise. (SET_BISON): New macro. (BISONFLAGS): Likewise. (JAVABISONFLAGS): Likewise. From-SVN: r34876
2000-07-05gjavah.c (HANDLE_METHOD): Call print_method_info with a NULL stream argument ↵Bryce McKinlay2-10/+20
on the first pass for CNI as... * gjavah.c (HANDLE_METHOD): Call print_method_info with a NULL stream argument on the first pass for CNI as well as JNI. (print_method_info): Set up method name on the first pass only. From-SVN: r34869
2000-06-29jcf-write.c (push_long_const): Appropriately cast short negative constant to ↵Alexandre Petit-Bianco2-1/+6
jword. 2000-06-29 Alexandre Petit-Bianco <apbianco@cygnus.com> * jcf-write.c (push_long_const): Appropriately cast short negative constant to jword. From-SVN: r34802
2000-06-29parse.y (verify_constructor_super): Use loop variable `m_arg_type' ↵Alexandre Petit-Bianco3-12/+19
initialized with `mdecl_arg_type'. 2000-06-29 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (verify_constructor_super): Use loop variable `m_arg_type' initialized with `mdecl_arg_type'. From-SVN: r34800
2000-06-30parse.y (resolve_field_access): Handle case where `type_found' is NULL.Tom Tromey3-2/+7
* parse.y (resolve_field_access): Handle case where `type_found' is NULL. From-SVN: r34795
2000-06-29expr.c (lookup_field): The same field can be found through two different ↵Alexandre Petit-Bianco2-0/+7
interface. 2000-06-27 Alexandre Petit-Bianco <apbianco@cygnus.com> * expr.c (lookup_field): The same field can be found through two different interface. Don't declare it ambiguous in that case. From-SVN: r34793
2000-06-29lex.c (java_lineterminator): Don't recognize \r after \n.Tom Tromey2-10/+19
* lex.c (java_lineterminator): Don't recognize \r after \n. If \r follows \r, then unget it at a lower level. From-SVN: r34782
2000-06-27parse.y (resolve_field_access): Pass decl, not DECL_INITIAL, to ↵Tom Tromey3-2/+7
java_complete_tree. * parse.y (resolve_field_access): Pass decl, not DECL_INITIAL, to java_complete_tree. From-SVN: r34732
2000-06-26re GNATS gcj/238 (Can't call methods from Object on an inner class)Bryce McKinlay3-91/+113
2000-06-09 Bryce McKinlay <bryce@albatross.co.nz> * parse.y (find_applicable_accessible_methods_list): Use a hashtable to track searched classes, and do not search the same class more than once. Call find_applicable_accessible_methods_list on immediate superclass, instead of search_applicable_method_list on all ancestors. Fix for PR gcj/238. (Fix to the Java PR #238: http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00206.html) From-SVN: r34727
2000-06-26[multiple changes]Alexandre Petit-Bianco5-436/+501
2000-06-23 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (set_super_info): Handle ACC_PRIVATE for (inner) classes. * java-tree.h (TYPE_PRIVATE_INNER_CLASS): New macro. (struct lang_type): New field `pic.' (CLASS_PRIVATE): New macro. * parse.y (check_inner_class_access): New function. (jdep_resolve_class): Call it. 2000-06-09 Bryce McKinlay <bryce@albatross.co.nz> * parse.y (register_fields): Permit static fields in inner classes if they are final. Fix for PR gcj/255. (These patches are fixes to the PR #224 and #255: http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00158.html http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00287.html) From-SVN: r34725
2000-06-26re GNATS gcj/268 (Internal compiler error in for-loop test condition)Tom Tromey3-212/+225
* parse.y (for_statement): Wrap expression in a WFL if it is a constant. For PR gcj/268. From-SVN: r34712
2000-06-26parse.y (do_resolve_class): Minor optimiztion in the package list search.Alexandre Petit-Bianco3-10/+21
2000-06-25 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (do_resolve_class): Minor optimiztion in the package list search. Removed unecessary test and return statement. (valid_ref_assignconv_cast_p): Order of arguments to enclosing_context_p fixed. From-SVN: r34705
2000-06-25expr.c (lookup_field): Print error and return error_mark_node if field ↵Tom Tromey2-2/+25
reference is ambiguous. * expr.c (lookup_field): Print error and return error_mark_node if field reference is ambiguous. From-SVN: r34698
2000-06-25parse.y (check_abstract_method_definitions): Also check if `other_method' is ↵Tom Tromey3-2/+11
abstract. * parse.y (check_abstract_method_definitions): Also check if `other_method' is abstract. From-SVN: r34697
2000-06-25re GNATS gcj/260 ("Klass.class" expression should cause Klass to be initialized)Tom Tromey3-4/+15
* parse.y (patch_incomplete_class_ref): Initialize the returned class. For PR gcj/260. From-SVN: r34695
2000-06-21[multiple changes]Alexandre Petit-Bianco11-624/+806
2000-06-21 Alexandre Petit-Bianco <apbianco@cygnus.com> * except.c (prepare_eh_table_type): Use `CATCH_ALL_TYPE'. 2000-06-20 Alexandre Petit-Bianco <apbianco@cygnus.com> * check-init.c (ENABLE_JC1_CHECKING): Replaces ENABLE_CHECKING for Java specific checks. * expr.c (build_instanceof): CLASS_INTERFACE and CLASS_FINAL usage screened by DECL_P. * java-tree.def (CASE_EXPR): Marked 'e'. (DEFAULT_EXPR): Likewise. * jcf-parse.c (set_source_filename): CLASS_COMPLETE_P usage screened by DECL_P. * jcf-write.c (ENABLE_JC1_CHECKING): Replaces ENABLE_CHECKING for Java specific checks. (generate_bytecode_insns): Test try_block for BLOCK before using BLOCK_EXPR_BODY. * parse.y (build_wfl_wrap): Added `location' argument. Set EXPR_WFL_LINECOL accordingly. (dim_expr:): Wrap constants with WFLs. (method_declarator): Use TREE_TYPE not TYPE_NAME on GET_CPC. (resolve_package): Check for `stmt' not being a BLOCK before building a debuggable statement with it. (make_qualified_primary): Added extra parameter to build_wfl_wrap invocation. (resolve_field_access): Make sure `decl' is a DECL before treating it as such. (maybe_build_primttype_type_ref): Make sure `wfl''s node is an IDENTIFIER_NODE before treating it as such. (patch_new_array_init): Make sure `elt' is a TREE_LIST before treating it as such. (find_applicable_accessible_methods_list): CLASS_INTERFACE macro to be applied only on non array types. 2000-06-16 Per Bothner <per@bothner.com> * java-tree.h (LABEL_RETURN_LABELS, LABEL_PENDING_CHAIN): Don't define in terms of DECL_RESULT, as that fails when --enable-checking. 2000-06-06 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.h (REGISTER_IMPORT): Use `chainon' to link new entries. * parse.y (find_in_imports): Returned type changed to void, leading comment fixed. (register_package): New function. (qualify_and_find): Likewise. (package_declaration:): Use `register_package'. (single_type_import_declaration:): Removed local variable `node'. Added missing `;' for consistency. (type_import_on_demand_declaration:): Use `chainon' to link new entries. (lookup_field_wrapper): Lookup local variables defined in outer contexts first. (java_complete_class): Don't reverse the list of imported on demand. (do_resolve_class): Reorganized. Removed local variable `original_name'. Call `qualify_and_find' with the current package name, invoke `find_in_imports_on_demand' right after. Call `qualify_and_find' with the packages we've seen so far. Fixed operations numbering in comments. (java_expand_class): Don't reverse `package_list'. (find_most_specific_methods_list): New local variables `abstract' and `candidates'. Use them to pick the right method. (Fixes for the ENABLE_TREE_CHECKING Java run-time build problem: http://gcc.gnu.org/ml/gcc-patches/2000-06/msg00551.html) From-SVN: r34642
2000-06-15jcf-write.c (CHECK_PUT): Add static prototype.Kaveh R. Ghazi2-4/+14
* jcf-write.c (CHECK_PUT): Add static prototype. Make pointer types the same in comparison. (CHECK_OP): Add static prototype. From-SVN: r34566
2000-06-14tree.h (TYPE_USER_ALIGN, [...]): Define.Jakub Jelinek4-1/+12
* tree.h (TYPE_USER_ALIGN, DECL_USER_ALIGN): Define. (struct tree_type, struct tree_decl): Add user_align member. * stor-layout.c (layout_decl): Set DECL_USER_ALIGN. (place_union_field): If BIGGEST_FIELD_ALIGNMENT is defined and DECL_USER_ALIGN 0, cap alignment to this value. (place_field): Likewise. (finalize_type_size): Set TYPE_USER_ALIGN. (layout_type): Likewise. (initialize_sizetypes): Likewise. * c-common.c (decl_attributes): Set TYPE_USER_ALIGN resp. DECL_USER_ALIGN to 1. * c-decl.c (duplicate_decls): Set DECL_USER_ALIGN. (xfer_tag): Set TYPE_USER_ALIGN. (finish_struct): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN. (finish_enum): Likewise. * stmt.c (expand_decl): Set DECL_USER_ALIGN. (expand_anon_union_decl): Likewise. * tree.c (make_node): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN. (build_index_type): Set TYPE_USER_ALIGN. (build_range_type): Likewise. (build_common_tree_nodes_2): Likewise. * tm.texi (BIGGEST_FIELD_ALIGNMENT): Document the changed meaning. ch/: * decl.c (init_decl_processing): Set TYPE_USER_ALIGN. (layout_enum): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN. * typeck.c (layout_chill_range_type): Set TYPE_USER_ALIGN. (apply_chill_field_layout): Set DECL_USER_ALIGN. (layout_chill_struct_type): Set TYPE_USER_ALIGN. cp/: * class.c (build_secondary_vtable): Set DECL_USER_ALIGN. (check_bitfield_decl, check_field_decl): Likewise. (build_vtbl_or_vbase_field, build_base_field): Likewise. (layout_class_type): Set DECL_USER_ALIGN resp. CLASSTYPE_USER_ALIGN. * decl.c (record_unknown_type): Set TYPE_USER_ALIGN. (xfer_tag, finish_enum): Likewise. * decl2.c (finish_builtin_type): Likewise. * init.c (init_init_processing): Likewise. * pt.c (instantiate_class_template): Likewise. * rtti.c (get_tinfo_decl, synthesize_tinfo_fn): Set DECL_USER_ALIGN. * cp-tree.h (struct lang_type): Add user_align member. (CLASSTYPE_USER_ALIGN): Define. f/: * com.c (ffecom_transform_common_): Set DECL_USER_ALIGN. (ffecom_transform_equiv_, ffecom_decl_field): Likewise. (ffecom_init_0): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN. (duplicate_decls): Set DECL_USER_ALIGN. java/: * typeck.c (build_java_array_type): Set TYPE_USER_ALIGN. * parse.y (java_complete_class): Set DECL_USER_ALIGN. * parse.c: Rebuilt. From-SVN: r34541
2000-06-11Warning fixes:Kaveh R. Ghazi4-2/+12
* bb-reorder.c (build_scope_forest): Initialize variable `curr_scope'. * calls.c (expand_call): Likewise for variables `save_pending_stack_adjust' and `save_stack_pointer_delta'. * i386.c (function_arg_advance, function_arg): Cast to avoid signed/unsigned warnings. * i386.h (MEMORY_MOVE_COST): Likewise. * ifcvt.c (cond_exec_process_if_block): Initialize variables `else_start' and `else_end'. * libgcc2.h (__eh_alloc, __eh_free): Prototype. * regrename.c (rr_replace_reg): Initialize variable `dest_subregno'. ch: * Makefile.in (EXPR_H): New dependency variable. (actions.o, expr.o): Use EXPR_H. (lang.o): Depend on RTL_H and EXPR_H. * lang.c: Include rtl.h and expr.h. (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED. cp: * decl2.c (compare_options): Don't needlessly cast away const-ness. f: * com.c (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED. java: * decl.c (create_primitive_vtable): Prototype. * jcf-write.c (generate_bytecode_insns): Initialize variable `saved_context'. * lang.c (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED. From-SVN: r34490
2000-06-06parse.y (check_modifiers_consistency): Don't subtract out `PUBLIC_TK' from ↵Tom Tromey2-4/+7
argument to THIS_MODIFIER_ONLY. * parse.y (check_modifiers_consistency): Don't subtract out `PUBLIC_TK' from argument to THIS_MODIFIER_ONLY. From-SVN: r34433
2000-06-06configure.in (AC_C_INLINE): Added.Philipp Thomas3-2/+16
gcc/: * configure.in (AC_C_INLINE): Added. * configure: Regenerate. gcc/java: * Makefile.in (INTLLIBS): New. (LIBS): Add above. (DEPLIBS): Ditto. gcc/f: * Makefile.in(INTLLIBS): New macro. (LIBS): Add INTLLIBS. (DEPLIBS): Likewise. gcc/ch: * Makefile.in: Changed to be processed by configure. (INTLLIBS): New macro. (LIBS): Add INTLLIBS. (DEPLIBS): Likewise. * config-lang(outputs): Specify ch/Makefile. gcc/po: * Makefile.in.in: Add --define switch for xgettext. gcc/intl: * Makefile.in: Add -DIN_GCC to DEFS, add appropriate -I switches. * dcgettext.c: Define _GNU_SOURCE before any system header is included. Guard getcwd declaration with HAVE_DECL_GETCWD. * loadmsgcat.c (_nl_load_domain): Cast st.st_size in compaison to size_t. * localealias.c: Define _GNU_SOURCE before any system header is included. Don't use return value of memcpy because it could be a macro defined in terms of bcopy. (read_alias_file): Remove HAVE_MEMCPY guard and just don't use the return value of memcpy. Cast argument to fgets and strlen to char *. * explodename.c (_nl_explode_name): Cast codeset to unsigned char ** in call to _nl_normalize_codeset. * l10nflist.c: Define _GNU_SOURCE before any system header is included. From-SVN: r34423
2000-06-02class.c (get_dispatch_table): Build the vtable dummy entry list element with ↵Alexandre Petit-Bianco2-4/+32
a null purpose. Fri Jun 2 16:48:55 2000 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (get_dispatch_table): Build the vtable dummy entry list element with a null purpose. Fixed leading comment. (build_dtable_decl): Build an accurate dtable type when appropriate and use it. From-SVN: r34369
2000-06-02alias.c (lang_get_alias_set): Remove.Richard Henderson2-0/+14
gcc/ * alias.c (lang_get_alias_set): Remove. (get_alias_set): Call it directly, not indirectly. * c-common.c (lang_get_alias_set): Rename from c_get_alias_set. * c-common.h (c_get_alias_set): Don't declare. * c-decl.c (init_decl_processing): Don't set lang_get_alias_set. * expr.h (lang_get_alias_set): Declare as function, not pointer. gcc/ch/ * lang.c (lang_get_alias_set): New. gcc/cp/ * decl.c (init_decl_processing): Don't set lang_get_alias_set. gcc/f/ * com.c (lang_get_alias_set): New. gcc/java/ * lang.c (lang_get_alias_set): New. From-SVN: r34368
2000-06-01re GNATS gcj/127 (gcj dumps core on method invocation on a primitive type)Bryce McKinlay3-0/+25
2000-05-23 Bryce McKinlay <bryce@albatross.co.nz> * parse.y (patch_method_invocation): Don't try to lookup methods in primitive types. (This fixes the PR gcj/127: http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00011.html) From-SVN: r34347
2000-06-01re GNATS gcj/207 (Compiler failure)Alexandre Petit-Bianco2-0/+7
Thu Apr 27 17:47:34 2000 Alexandre Petit-Bianco <apbianco@cygnus.com> * jcf-parse.c (jcf_parse_source): Reset current_class and current_function_decl to NULL before parsing a new file. (This fixes the PR gcj/207: http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00044.html) From-SVN: r34343
2000-06-01re GNATS gcj/129 (Static array length access bug in gcj)Alexandre Petit-Bianco3-0/+30
2000-05-02 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (resolve_field_access): Call the appropriate <clinit> before accessing the length of a static array. Craft a decl for the field while its time. (Fixes the PR #129: http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00013.html) From-SVN: r34340
2000-06-01class.c (common_enclosing_context_p): New function.Alexandre Petit-Bianco6-25/+118
2000-04-24 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (common_enclosing_context_p): New function. * java-tree.h (common_enclosing_context_p): Added prototype. * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Relaxed test to allow classes sharing an outer context with the current instance. * parse.y (build_access_to_thisn): Fixed leading comment. (verify_constructor_super): New local `supper_inner'. Skip enclosing context argument in the case of inner class constructors. (patch_method_invocation): Insert proper context as second parameter to pure inner class constructor super invocations. This fixes the Java PR #177. From-SVN: r34332
2000-05-31re GNATS gcj/71 (failure to compile an interface method invocation on a ↵Alexandre Petit-Bianco2-2/+16
sub-interface) 2000-04-05 Alexandre Petit-Bianco <apbianco@cygnus.com> * jcf-write.c (generate_bytecode_insns): At invokation time, always relate an interface method to the type of its selector. (Fix to the PR #71: http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00040.html) From-SVN: r34330
2000-05-31parse.y (maybe_yank_clinit): New function.Alexandre Petit-Bianco3-454/+574
2000-04-17 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (maybe_yank_clinit): New function. (maybe_generate_pre_expand_clinit): Always link <clinit> at the end of the list of methods belonging to a class. (java_complete_expand_method): Check whether <clinit> is really necessary and expand it accordingly. From-SVN: r34329
2000-05-31parse.y (resolve_field_access): Complete the DECL_INITIAL tree before using ↵Alexandre Petit-Bianco3-166/+237
it as the accessed field. 2000-05-31 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (resolve_field_access): Complete the DECL_INITIAL tree before using it as the accessed field. From-SVN: r34320
2000-05-31java-tree.h (boolean_array_vtable, [...]): Declare.Tom Tromey4-8/+98
* java-tree.h (boolean_array_vtable, byte_array_vtable, char_array_vtable, short_array_vtable, int_array_vtable, long_array_vtable, float_array_vtable, double_array_vtable): Declare. * expr.c (get_primitive_array_vtable): New function. (create_primitive_vtable): New function. (java_lang_expand_expr): Enable code to statically generate arrays. * decl.c (init_decl_processing): Create primitive vtables. (boolean_array_vtable, byte_array_vtable, char_array_vtable, short_array_vtable, int_array_vtable, long_array_vtable, float_array_vtable, double_array_vtable): Define. From-SVN: r34314
2000-05-26parse.y (find_applicable_accessible_methods_list): Don't add an ↵Zack Weinberg3-8/+17
uninitialized value to the list. 2000-05-26 Zack Weinberg <zack@wolery.cumb.org> * java/parse.y (find_applicable_accessible_methods_list): Don't add an uninitialized value to the list. From-SVN: r34196
2000-05-26re GNATS gcj/162 (gcj does not initialize interfaces according to spec)Tom Tromey3-4/+7
* parse.y (resolve_field_access): Don't check DECL_LANG_SPECIFIC when trying to see if field's class should be initialized. Always initialize field's declaring class, not qualified class. For PR gcj/162. From-SVN: r34182
2000-05-26re GNATS gcj/235 (source parser dies when Primitive.TYPE is used in an array ↵Tom Tromey3-2/+8
declaration) * parse.y (array_constructor_check_entry): Pass `wfl_value', not `wfl_operator', to maybe_build_primttype_type_ref. Fixes PR gcj/235. From-SVN: r34181
2000-05-20parse.y (resolve_package): Correctly set `*next' (was off by one.)Alexandre Petit-Bianco3-4/+16
2000-05-01 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (resolve_package): Correctly set `*next' (was off by one.) (resolve_qualified_expression_name): Fixed comment. From-SVN: r34060