aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
1999-04-12parse.y (patch_unaryop): Fix ++ operator check on array references.Alexandre Petit-Bianco3-6/+18
Mon Apr 12 18:27:32 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (patch_unaryop): Fix ++ operator check on array references. From-SVN: r26382
1999-04-09parse.y (patch_assignment): Added ArrayStoreException runtime check.Alexandre Petit-Bianco3-8/+111
Tue Apr 6 15:15:51 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (patch_assignment): Added ArrayStoreException runtime check. From-SVN: r26318
1999-04-06Makefile.in (TREE_H): Add tree-check.h.Jeffrey A Law2-2/+7
* Makefile.in (TREE_H): Add tree-check.h. (RTL_H): Add genrtl.h. From-SVN: r26228
1999-04-06expr.c (pop_type_0): New function.Per Bothner2-5/+29
� * expr.c (pop_type_0): New function. (pop_type): Use pop_type_0. * java-tree.h (pop_type_0): New declaration. * verify.c (verify_jvm_instructions): Check return instructions. From-SVN: r26218
1999-04-06expr.c (pop_type_0): New function.Per Bothner2-2/+21
� * expr.c (pop_type_0): New function. (pop_type): Use pop_type_0. * java-tree.h (pop_type_0): New declaration. * verify.c (verify_jvm_instructions): Check return instructions. From-SVN: r26217
1999-04-06parse.y (patch_binop): Don't fold if non-constant and emiting class files.Per Bothner1-0/+5
8 * parse.y (patch_binop): Don't fold if non-constant and emiting class files. From-SVN: r26216
1999-04-06parse.y (patch_binop): Don't fold if non-constant and emiting class files.Per Bothner1-2/+6
� * parse.y (patch_binop): Don't fold if non-constant and emiting class files. From-SVN: r26215
1999-04-06parse.y (patch_binop): Don't fold if non-constant and emiting class files.Per Bothner1-2/+6
h * parse.y (patch_binop): Don't fold if non-constant and emiting class files. From-SVN: r26214
1999-04-05Makefile.in (gjavah.o): Depend on $(JAVA_TREE_H).Kaveh R. Ghazi6-6/+24
* Makefile.in (gjavah.o): Depend on $(JAVA_TREE_H). * gjavah.c: Include math.h earlier. Include tree.h/java-tree.h. (main_jcf): Don't define. (process_file): Don't set `main_jcf'. * java-tree.h (main_jcf): Don't declare. * jcf-parse.c (main_jcf): Add static definition. * lang.c (main_jcf): Don't define. From-SVN: r26204
1999-04-05class.c (add_method_1): Cast the argument of `bzero' to PTR.Kaveh R. Ghazi12-24/+34
* class.c (add_method_1): Cast the argument of `bzero' to PTR. * decl.c (copy_lang_decl): Likewise for `bcopy'. * jcf-depend.c: Include "config.h", not <config.h>. * jcf-parse.c (jcf_figure_file_type): Cast the arguments of `bcopy' to PTR. * jcf-path.c: Include "config.h", not <config.h>. * lex.c: Don't include various system header files. (java_init_lex): Cast the argument of `bzero' to PTR * parse-scan.y (java_push_parser_context): Likewise. * parse.y (java_push_parser_context): Likewise. * xref.c: Don't include <stdio.h>. From-SVN: r26203
1999-04-05parse.y (struct parser_ctxt *ctxp): Now global.Alexandre Petit-Bianco3-4/+20
Mon Apr 5 11:24:19 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (struct parser_ctxt *ctxp): Now global. (declare_local_variables): Use WFL compound value for the declaration source line value, when doing cross-referencing. From-SVN: r26201
1999-03-31gjavah.c (print_field_info): Allow constants of other types.Tom Tromey2-46/+122
* gjavah.c (print_field_info): Allow constants of other types. (print_include): Generate include when new name is proper prefix of already printed name. (add_namelet): Likewise. (cxx_keyword_subst): New function. (print_method_info): Use it. (print_field_name): New function. (get_field_name): New function. (print_field_info): Use get_field_name and print_field_name. From-SVN: r26085
1999-03-31Makefile.in (keyword.h): Generate using gperf language 'C'...Kaveh R. Ghazi4-8/+15
* Makefile.in (keyword.h): Generate using gperf language 'C', not 'KR-C', so gperf uses the `const' keyword on strings. * keyword.gperf (java_keyword): Const-ify a char*. From-SVN: r26082
1999-03-30[multiple changes]Alexandre Petit-Bianco3-18/+36
Tue Mar 30 11:31:53 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (patch_bc_statement): Fixed identation and a bogus `printf' format. Tue Mar 30 11:29:29 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (patch_assignment): Allow static variables in other classes to be assigned. From-SVN: r26065
1999-03-28Warning fixes:Kaveh R. Ghazi4-8/+15
* class.c (maybe_add_interface): Remove unused variable `interface_binfo'. (make_class_data): Use = for assignment, not ==. Likewise. (emit_register_classes): Remove unused variable `decl'. * lex.c: Fix comment so as not to contain an embedded `/*'. * verify.c (verify_jvm_instructions): Remove unused variable `self_type'. From-SVN: r26046
1999-03-27[multiple changes]Alexandre Petit-Bianco6-478/+632
Sat Mar 27 15:13:21 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.h (EXPR_WFL_GET_LINECOL): Set a line and column count using a WFL compound value. * parse.y (xref.h): Include. (maybe_create_class_interface_decl): Set DECL_SOURCE_LINE to the WFL compound value. (register_fields): Set WFL compound value to lineno if doing xrefs. (java_complete_expand_method): Call expand_xref if flag_emit_xref is set. * xref.c (system.h, jcf.h, parse.h, obstack.h): Include. * xref.h (expand_xref): Prototype renamed from xref_generate. Sat Mar 27 14:16:32 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.h (BLOCK_CHAIN_DECL): New use GET_CURRENT_BLOCK. (GET_CURRENT_BLOCK): New macro. * parse.y (current_static_block): New global variable. (method_body:): Define action. (complete_method_declaration): Set current_function_decl to NULL when work on the current method is done. (declare_local_variables): Use GET_CURRENT_BLOCK. (java_method_add_stmt): Likewise. (java_complete_expand_method): Disable the use of `this' when expanding <clinit>. (enter_a_block): If no current method exist, use current_static_block to link static initializer blocks. (exit_block): Rewritten to use current_static_block when no current method decl exists. (lookup_name_in_blocks): Use GET_CURRENT_BLOCK. (patch_return): Forbid the use of `return' in static initializers. (patch_throw_statement): Fixed indentation. Issue specific error for uncaught thrown checked exception in static initializer blocks. Removed FIXME. From-SVN: r26018
1999-03-27parse.y (complete_loop_body): Rename to finish_loop_body.Per Bothner2-0/+19
� * parse.y (complete_loop_body): Rename to finish_loop_body. (complete_labeled_statement): Rename to finish_labeled_statement. (complete_for_loop): Rename to finish_for_loop. (complete_method_declaration): Rename to finish_method_declaration. * java-tree.h (continue_identifier_node): New global node. * decl.c: Define and initialize continue_identifier_node. * parse.y (generate_labeled_block): Remove - no longer needed. (build_loop_body): Use continue_identifier_node for continue block. (finish_labeled_statement): Also do pop_labeled_block actions. (java_complete_lhs): POP_LOOP even if error. (build_labeled_block): Special handling for continue_identifier_node. (patch_loop_statement): Re-organize. (patch_bc_statement): Re-write. From-SVN: r26017
1999-03-27*** empty log message ***Per Bothner1-578/+526
From-SVN: r26016
1999-03-27parse.y (complete_loop_body): Rename to finish_loop_body.Per Bothner2-155/+104
d * parse.y (complete_loop_body): Rename to finish_loop_body. (complete_labeled_statement): Rename to finish_labeled_statement. (complete_for_loop): Rename to finish_for_loop. (complete_method_declaration): Rename to finish_method_declaration. * java-tree.h (continue_identifier_node): New global node. * decl.c: Define and initialize continue_identifier_node. * parse.y (generate_labeled_block): Remove - no longer needed. (build_loop_body): Use continue_identifier_node for continue block. (finish_labeled_statement): Also do pop_labeled_block actions. (java_complete_lhs): POP_LOOP even if error. (build_labeled_block): Special handling for continue_identifier_node. (patch_loop_statement): Re-organize. (patch_bc_statement): Re-write. From-SVN: r26015
1999-03-25gcc.c: Compile unconditionally all code formerly dependent on #ifdef ↵Zack Weinberg2-17/+7
LANG_SPECIFIC_DRIVER. * gcc.c: Compile unconditionally all code formerly dependent on #ifdef LANG_SPECIFIC_DRIVER. * gccspec.c: New file with stub lang_specific_driver, lang_specific_pre_link. * Makefile.in: Link gccspec.o into xgcc. Add rule to compile gccspec.c. * cp/Make-lang.in: Remove all references to g++.o/g++.c. Link g++ from gcc.o. * f/Make-lang.in: Remove all references to g77.o/g77.c. Link g77 from gcc.o. * java/Make-lang.in: Remove all references to gcj.o/gcj.c. Link gcj from gcc.o. From-SVN: r25989
1999-03-23parse.y (find_applicable_accessible_methods_list): When dealing with ↵Alexandre Petit-Bianco3-11/+75
interface... Tue Mar 23 10:48:24 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (find_applicable_accessible_methods_list): When dealing with interface: ensure that a given interface or java.lang.Object are searched only once. From-SVN: r25925
1999-03-23Warning fixes:Kaveh R. Ghazi8-466/+483
* gjavah.c (print_c_decl): Remove unused argument `flags'. * jcf-dump.c (print_access_flags): Add braces around if-else. * jvspec.c (lang_specific_driver): Wrap variable `len' in macro COMBINE_INPUTS. * lex.c (build_wfl_node): Add static prototype. * lex.h (build_wfl_node): Remove static prototype. * parse.y: Include lex.c early enough to declare everything needed. Ensure calls to `build_wfl_node' pass the proper arguments. (create_class): Remove unused variable `super_decl'. (get_printable_method_name): Initialize variable `name'. From-SVN: r25921
1999-03-22Changelog: Fixed 1999-03-22 typos.Alexandre Petit-Bianco2-3/+9
Mon Mar 22 20:14:26 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * Changelog: Fixed 1999-03-22 typos. * lang.c (lang_decode_option): Fixed typo in error string in the XARG section. (Grr, typos.) From-SVN: r25908
1999-03-22Makefile.in: (JAVA_OBJS) Added entry xref.o.Alexandre Petit-Bianco6-1/+149
1999-03-22 Alexandre Petit-Bianco <apbianco@cygnus.com> * Makefile.in: (JAVA_OBJS) Added entry xref.o. (xref.o): New rule. * java-tree.h (flag_emit_xref): Declared extern. * lang.c: (xref.h): Included. (flag_emit_xref): New global variable. (lang_decode_option): Added support for -fxref. * xref.c: Created. * xref.h: Likewise. From-SVN: r25907
1999-03-21Makefile.in (xgcc$(exeext)): Add intl.o to list of files to be linked with.Manfred Hollstein1-0/+5
gcc/ChangeLog: 1999-03-21 Manfred Hollstein <manfred@s-direktnet.de> * Makefile.in (xgcc$(exeext)): Add intl.o to list of files to be linked with. gcc/f/ChangeLog: 1999-03-21 Manfred Hollstein <manfred@s-direktnet.de> * Makefile.in (g77$(exeext)): Depend on intl.o. Link in intl.o. gcc/java/ChangeLog: 1999-03-21 Manfred Hollstein <manfred@s-direktnet.de> * Make-lang.in ($(GCJ)$(exeext)): Add intl.o to list of files to be linked with. gcc/po/ChangeLog: 1999-03-21 Manfred Hollstein <manfred@s-direktnet.de> * POTFILES.in: Track latest file renamings. 1999-03-01 Manfred Hollstein <manfred@s-direktnet.de> * POTFILES.in: Remove files which do not exist anymore in egcs. Fix names of those files which are now living in egcs's libiberty/include directories. From-SVN: r25881
1999-03-21*** empty log message ***Manfred Hollstein1-2/+2
From-SVN: r25880
1999-03-21Makefile.in (jcf-dump.o): Depend on $(CONFIG_H) $(srcdir)/../system.h and ↵Kaveh R. Ghazi22-160/+411
$(JAVA_TREE_H). * Makefile.in (jcf-dump.o): Depend on $(CONFIG_H) $(srcdir)/../system.h and $(JAVA_TREE_H). (jcf-io.o): Depend on $(JAVA_TREE_H). (mangle.o): Likewise. * check-init.c (check_cond_init): Add static prototype. * class.c (build_java_method_type, hashUtf8String, make_field_value, get_dispatch_vector, get_dispatch_table, append_gpp_mangled_type, mangle_static_field): Likewise. (strLengthUtf8): Hide unused definition. (hashUtf8String): Const-ify. (make_field_value): Un-ANSI-fy. * constants.c: Move inclusion of jcf.h above java-tree.h. (set_constant_entry, find_class_or_string_constant, find_name_and_type_constant, get_tag_node, build_constant_data_ref): Add static prototype. * decl.c (push_jvm_slot, builtin_function, lookup_name_current_level): Likewise. (builtin_function): Const-ify. * except.c (expand_start_java_handler, expand_end_java_handler): Add static prototype. * expr.c (flush_quick_stack, push_value, pop_value, java_stack_swap, java_stack_dup, build_java_athrow, build_java_jsr, build_java_ret, expand_java_multianewarray, expand_java_arraystore, expand_java_arrayload, expand_java_array_length, build_java_monitor, expand_java_pushc, expand_java_return, expand_java_NEW, expand_java_INSTANCEOF, expand_java_CHECKCAST, expand_iinc, expand_java_binop, note_label, expand_compare, expand_test, expand_cond, expand_java_goto, expand_java_call, expand_java_ret, pop_arguments, expand_invoke, expand_java_field_op, java_push_constant_from_pool): Likewise. (decode_newarray_type, expand_iinc): Un-ANSI-fy. (build_java_arraynull_check): Mark parameters `node' and `type' with ATTRIBUTE_UNUSED. (note_label): Likewise for parameter `current_pc'. (expand_java_call, expand_java_ret): Hide unused definition. * java-tree.h (make_class, build_constants_constructor, java_set_exception_lang_code, pop_labeled_block, emit_handlers, init_outgoing_cpool, register_class, emit_register_classes, java_layout_seen_class_methods): Prototype. (unicode_mangling_length): Const-ify. (append_gpp_mangled_name, append_gpp_mangled_classtype, emit_unicode_mangled_name, format_int, format_uint, jcf_trim_old_input, jcf_print_utf8, jcf_print_char, jcf_print_utf8_replace, open_class): Prototype. * jcf-dump.c: Include "config.h", not <config.h>. Don't include <stdio.h>. Include tree.h/java-tree.h. (utf8_equal_string usage, process_class): Add static prototype. (open_class): Don't prototype this here. (utf8_equal_string): Match arguments to format specifiers. (HANDLE_CODE_ATTRIBUTE, BRANCH, JSR, RET, LOOKUP_SWITCH, TABLE_SWITCH, disassemble_method): Likewise. * jcf-io.c: Include tree.h/java-tree.h. (open_class, find_classfile, jcf_print_utf8, jcf_print_utf8_replace): Const-ify. * jcf-parse.c (parse_zip_file_entries, process_zip_dir, parse_class_file): Add static prototype. (find_in_current_zip): Match definition to existing static prototype. * jcf-write.c: Include jcf.h before tree.h/java-tree.h. (alloc_chunk, append_chunk, append_chunk_copy, gen_jcf_label, finish_jcf_block, define_jcf_label, get_jcf_label_here, put_linenumber, localvar_alloc, localvar_free, get_access_flags, write_chunks, adjust_typed_op, generate_bytecode_conditional, generate_bytecode_return, perform_relocations, init_jcf_state, init_jcf_method, release_jcf_state, generate_classfile): Add static prototype. (emit_unop): Mark parameter `type' with ATTRIBUTE_UNUSED. (make_class_file_name): Const-ify. * jcf.h (find_classfile): Const-ify. * jv-scan.c (reset_report): Remove prototype. * jvgenmain.c: Include jcf.h/tree.h/java-tree.h. (error): Rewrite to allow varargs. * lang.c (lang_f_options): Const-ify. * lex.c (java_parse_escape_sequence): Add static prototype. (java_allocate_new_line): Match definition to existing static prototype. * mangle.c Include tree.h/java-tree.h. (unicode_mangling_length, emit_unicode_mangled_name, append_gpp_mangled_name, append_gpp_mangled_classtype): Const-ify. * parse.h (jdep_code): Remove trailing comma in enumeration. (java_get_line_col): Move prototype outside of !JC1_LITE test. (reset_report): Add prototype. * verify.c (push_pending_label, merge_types): Add static prototypes. * zipfile.h (opendir_in_zip, open_in_zip): Prototype. From-SVN: r25878
1999-03-19parse.y (find_applicable_accessible_methods_list): Extend the search to ↵Alexandre Petit-Bianco1-374/+374
superinterfaces when relevant. 1999-03-19 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (find_applicable_accessible_methods_list): Extend the search to superinterfaces when relevant. (search_applicable_methods_list): New function. (Previous check didn't have the right path in the `#line' directives.) From-SVN: r25863
1999-03-19parse.y (find_applicable_accessible_methods_list): Extend the search to ↵Alexandre Petit-Bianco1-449/+481
superinterfaces when relevant. 1999-03-19 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (find_applicable_accessible_methods_list): Extend the search to superinterfaces when relevant. (search_applicable_methods_list): New function. (parse.c wasn't part of the last check-in.) From-SVN: r25862
1999-03-19[multiple changes]Alexandre Petit-Bianco3-25/+80
1999-03-19 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (find_applicable_accessible_methods_list): Extend the search to superinterfaces when relevant. (search_applicable_methods_list): New function. 1999-03-18 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (unmangle_classname): Implemented stricter testing before setting the QUALIFIED_P flag on an identifier. From-SVN: r25861
1999-03-16parse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray.Per Bothner1-0/+6
� * parse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray. (patch_binop): Don't call fold if there are side effects. From-SVN: r25808
1999-03-16parse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray.Per Bothner1-2/+6
x * parse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray. (patch_binop): Don't call fold if there are side effects. From-SVN: r25807
1999-03-16parse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray.Per Bothner1-2/+6
* parse.y (java_complete_lhs): Call force_evaluation_order after patch_newarray. (patch_binop): Don't call fold if there are side effects. From-SVN: r25806
1999-03-15parse.y (java_stabilize_reference): Use save_expr instead of building a ↵Alexandre Petit-Bianco3-6/+20
SAVE_EXPR node. 1999-03-16 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (java_stabilize_reference): Use save_expr instead of building a SAVE_EXPR node. (java_complete_lhs): Patch the resulting string of the `+=' operator (if necessary) and complete the RHS after having built the cast. From-SVN: r25797
1999-03-15class.c (make_class): Don't set CLASS_P here (because this function is also ↵Per Bothner1-0/+17
called by... * class.c (make_class): Don't set CLASS_P here (because this function is also called by build_java_array_type). (push_class): Set CLASS_P here instead. * parse.h (TYPE_CLASS_P): Check for TYPE_ARRAY_P is redundant. * jcf-dump.c (print_access_flags): Take extra parameter to indicate context. If the context is class, perfer "super" over "synchronized". * jcf-write.c (generate_classfile): Don't add ACC_SUPER if interface. * parse.y (create_class): Don't call parser_check_super here; it is not robust. Always wait until later. * parse.y (method_header): For interfaces, set ACC_ABSTRACT (to match what JDK 1.2 does), but don't set ACC_PUBLIC. From-SVN: r25785
1999-03-15class.c (make_class): Don't set CLASS_P here (because this function is also ↵Per Bothner4-32/+21
called by... d * class.c (make_class): Don't set CLASS_P here (because this function is also called by build_java_array_type). (push_class): Set CLASS_P here instead. * parse.h (TYPE_CLASS_P): Check for TYPE_ARRAY_P is redundant. * jcf-dump.c (print_access_flags): Take extra parameter to indicate context. If the context is class, perfer "super" over "synchronized". * jcf-write.c (generate_classfile): Don't add ACC_SUPER if interface. * parse.y (create_class): Don't call parser_check_super here; it is not robust. Always wait until later. * parse.y (method_header): For interfaces, set ACC_ABSTRACT (to match what JDK 1.2 does), but don't set ACC_PUBLIC. From-SVN: r25784
1999-03-15class.c (make_class): Don't set CLASS_P here (because this function is also ↵Per Bothner1-1/+3
called by... a * class.c (make_class): Don't set CLASS_P here (because this function is also called by build_java_array_type). (push_class): Set CLASS_P here instead. * parse.h (TYPE_CLASS_P): Check for TYPE_ARRAY_P is redundant. * jcf-dump.c (print_access_flags): Take extra parameter to indicate context. If the context is class, perfer "super" over "synchronized". * jcf-write.c (generate_classfile): Don't add ACC_SUPER if interface. * parse.y (create_class): Don't call parser_check_super here; it is not robust. Always wait until later. * parse.y (method_header): For interfaces, set ACC_ABSTRACT (to match what JDK 1.2 does), but don't set ACC_PUBLIC. From-SVN: r25783
1999-03-15class.c (make_class): Don't set CLASS_P here (because this function is also ↵Per Bothner1-1/+1
called by... T * class.c (make_class): Don't set CLASS_P here (because this function is also called by build_java_array_type). (push_class): Set CLASS_P here instead. * parse.h (TYPE_CLASS_P): Check for TYPE_ARRAY_P is redundant. * jcf-dump.c (print_access_flags): Take extra parameter to indicate context. If the context is class, perfer "super" over "synchronized". * jcf-write.c (generate_classfile): Don't add ACC_SUPER if interface. * parse.y (create_class): Don't call parser_check_super here; it is not robust. Always wait until later. * parse.y (method_header): For interfaces, set ACC_ABSTRACT (to match what JDK 1.2 does), but don't set ACC_PUBLIC. From-SVN: r25782
1999-03-13lex.c (java_read_char): UNGET invalid non-initial utf8 character.Per Bothner1-0/+5
� * lex.c (java_read_char): UNGET invalid non-initial utf8 character. * lex.h (UNGETC): Change misleading macro. From-SVN: r25754
1999-03-13lex.c (java_read_char): UNGET invalid non-initial utf8 character.Per Bothner2-3/+14
h * lex.c (java_read_char): UNGET invalid non-initial utf8 character. * lex.h (UNGETC): Change misleading macro. From-SVN: r25753
1999-03-12parse.y (java_stabilize_reference): Return NODE when patching a COMPOUND_EXPR.Alexandre Petit-Bianco5-300/+417
1999-03-12 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (java_stabilize_reference): Return NODE when patching a COMPOUND_EXPR. (java_complete_lhs): Put parenthesis around truth values. 1999-03-12 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (layout_class_method): Don't make rtl for interface methods. * parse.h (GET_TYPE_NAME): New macro. * parse.y (if_then_statement:): Fixed indentation. (if_then_else_statement:): Likewise. (for_statement:): Fixed spacing. (try_statement:): Fixed indentation. (create_interface): Don't force interfaces to be abstract. (method_header): Abstract methods are OK in interfaces. (declare_local_variables): Fixed typo in comment. (java_complete_expand_method): Fixed indentation. (resolve_qualified_expression_name): Use GET_TYPE_NAME to report non accessible fields. (java_stabilize_reference): New function. (java_complete_lhs): Fixed indentation. Use java_stabilize_reference in compound assignement. Insert the cast. If not processing `+' fix string constants before processing binop. From-SVN: r25733
1999-03-12Warning fixes:Kaveh R. Ghazi11-90/+47
* constants.c (find_class_or_string_constant): Cast variable `j' to a `jword' when comparing against one. * expr.c (java_lang_expand_expr): Remove unused variables `has_finally_p' and `op0'. * gjavah.c (print_field_info): Cast a value to jint when comparing against one. Likewise for a jlong. (add_namelet): Likewise cast a `sizeof' to an int when comparing against a signed quantity. * jcf-dump.c (print_signature_type): Remove unused variable `digit'. (print_signature): Don't needlessly dereference variable `str' * jcf-reader.c (get_attribute): Mark variables `max_stack' and `max_locals' with ATTRIBUTE_UNUSED. (jcf_parse_class): Likewise for variable `index'. * parse.h (reverse_jdep_list): Remove static prototype. * parse.y (build_jump_to_finally): Remove prototype and definition. (reverse_jdep_list): Add static prototype. * typeck.c (convert_ieee_real_to_integer): Remove unused variables `assignment' and `expr_decl'. * verify.c (verify_jvm_instructions): Remove unused label `bad_ldc'. From-SVN: r25731
1999-03-12jcf-path.c (add_entry): alloca len+2 rather than len+1 bytes...Andrew Haley2-1/+6
1999-03-12 Andrew Haley <aph@cygnus.com> * jcf-path.c (add_entry): alloca len+2 rather than len+1 bytes; we'll need a directory separator and a null character. From-SVN: r25726
1999-03-10jcf-write.c (generate_bytecode_insns): Handle __builtin_fmod, for %.Per Bothner1-0/+4
8 * jcf-write.c (generate_bytecode_insns): Handle __builtin_fmod, for %. From-SVN: r25683
1999-03-10jcf-write.c (generate_bytecode_insns): Handle __builtin_fmod, for %.Per Bothner1-0/+7
� * jcf-write.c (generate_bytecode_insns): Handle __builtin_fmod, for %. From-SVN: r25682
1999-03-08lex.c (java_parse_end_comment): Take extra parameter (next char).Per Bothner4-17/+33
� * lex.c (java_parse_end_comment): Take extra parameter (next char). * class.c (build_utf8_ref): Fix possible name class/ambiguity. * class.c (layout_class_method): A static method in a base class is never overridden, so treat it like it doesn't exist. However, do complain about private non-static method overriding public static method. * parse.y: Don't set unused INITIALIZED_P flag. * java-tree.h (INITIALIZED_P): Removed no-longer needed flag. * parse.y (find_expr_with_wfl): Optimize tail-calls. (build_array_from_name): Re-order &index[string] to &string[index]. * parse.y (java_complete_tree): Don't call patch_assignment if rhs is error_mark (it might catch more errors, but it is more likely to lose). From-SVN: r25641
1999-03-08*** empty log message ***Per Bothner2-74/+30
From-SVN: r25640
1999-03-06Makefile.in (jcf-parse.o): Depend on $(PARSE_H).Kaveh R. Ghazi13-122/+200
* Makefile.in (jcf-parse.o): Depend on $(PARSE_H). (parse-scan.o): Depend on toplev.h. * class.c (make_method_value): Add prototype. Make it static. Remove unused second argument, caller changed. * expr.c (java_lang_expand_expr): Remove unused variable `return_label'. * java-tree.h: Don't prototype find_in_current_zip. Add prototypes for verify_constant_pool, start_java_method, end_java_method, give_name_to_locals, expand_byte_code, open_in_zip, set_constant_value, find_constant1, find_constant2, find_utf8_constant, find_string_constant, find_class_constant, find_fieldref_index, find_methodref_index, write_constant_pool, count_constant_pool_bytes and encode_newarray_type. * jcf-dump.c: Remove unused variable `LONG_temp'. * jcf-parse.c: Include parse.h. (jcf_parse_source): Remove unused parameter, all callers changed. (jcf_figure_file_type): Add static prototype. (find_in_current_zip): Likewise. Also remove unused parameter, all callers changed. (read_class): Initialize variable `saved_pos'. * jcf-reader.c (jcf_parse_preamble): Mark variables `minor_version' and `major_version' with ATTRIBUTE_UNUSED. * lex.c (java_is_eol): Wrap prototype and definition in !JC1_LITE. (java_init_lex): Wrap variable `java_lang_imported' in !JC1_LITE. (java_parse_doc_section): Initialize variable `seen_star'. (java_lex): Wrap variable `number_beginning' in !JC1_LITE. (java_lex_error): Mark parameters `msg' and `forward' with ATTRIBUTE_UNUSED. (java_get_line_col): Mark parameters `filename' and `line' with ATTRIBUTE_UNUSED. * parse-scan.y: Include toplev.h. (yyerror): Mark parameter `msg' with ATTRIBUTE_UNUSED. * parse.h: use `struct JCF', not plain `JCF'. (java_parser_context_save_global, java_expand_classes java_parser_context_restore_global, java_parse): Add prototypes. * typeck.c (convert_ieee_real_to_integer): Remove unused variable `node'. From-SVN: r25616
1999-02-26check-init.c (check_init): COPYN takes word count, not bit count.Per Bothner1-0/+4
0 * check-init.c (check_init): COPYN takes word count, not bit count. From-SVN: r25471
1999-02-26check-init.c (check_init): COPYN takes word count, not bit count.Per Bothner1-1/+1
� * check-init.c (check_init): COPYN takes word count, not bit count. From-SVN: r25470