aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
2001-07-31*** empty log message ***Alexandre Petit-Bianco5-5/+18
From-SVN: r44528
2001-07-31[multiple changes]Alexandre Petit-Bianco4-5/+64
2001-07-18 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (create_interface): Avoid cyclic inheritance report when syntax error encountered during class definition. Fixes PR java/2956 2001-07-17 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.h (INTERFACE_INNER_MODIFIERS): Disallow `private.' * parse.y (check_class_interface_creation): Allow `private' if the enclosing is not an interface. (create_interface): Interface tagged public if the enclosing context is an interface. (create_class): Class tagged public if the enclosing context is an interface. Fixes PR java/2959 2001-07-17 Alexandre Petit-Bianco <apbianco@redhat.com> * class.c (push_class): Set DECL_SIZE to `integer_zero_node.' Fixes PR java/2665 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (java_complete_lsh): Set CAN_COMPLETE_NORMALLY and unset TREE_CONSTANT_OVERFLOW of CASE_EXPR value. Fixes PR java/3602 (http://gcc.gnu.org/ml/gcc-patches/2001-07/msg02297.html ) From-SVN: r44524
2001-07-18For PR java/2812:Tom Tromey4-7/+17
* lex.h: Use HAVE_ICONV, not HAVE_ICONV_H. * lex.c (java_new_lexer): Use ICONV_CONST. (java_read_char): Likewise. * Make-lang.in (jc1$(exeext)): Link against LIBICONV. (jv-scan$(exeext)): Likewise. From-SVN: r44120
2001-07-14* tree.def (EXPON_EXPR) remove. Never supported anyway.Tim Josling2-1/+4
* f/com.c (ffecom_overlap_): Remove references to EXPON_EXPR. (ffecom_tree_canonize_ref_): Likewise. * java/check-init.c (check_init): Remove references to EXPON_EXPR. From-SVN: r44011
2001-07-13jvspec.c (jvgenmain_spec): Remove -ffilelist-file from cc1 invocation.Tom Tromey2-0/+6
* jvspec.c (jvgenmain_spec): Remove -ffilelist-file from cc1 invocation. From-SVN: r44000
2001-07-13re PR java/3635 ("empty declaration" warning too broad)Alexandre Petit-Bianco2-3/+21
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (patch_method_invocation): Don't override primary if one is already provided, but let this$<n> be built. Fixed comment. 2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (empty_statement:): Report empty statement error only when found at class declaration level. Fixes PR java/3635 (http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00885.html ) From-SVN: r43993
2001-07-12re PR java/3285 (gcj fails to resolve constructor calls in inner classes)Alexandre Petit-Bianco2-1/+9
2001-07-11 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (verify_constructor_super): Compare anonymous class ctor args with `valid_method_invocation_conversion_p.' Fixes PR java/3285 (http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00823.html) From-SVN: r43973
2001-07-12expr.c (expand_load_internal): New function.Tom Tromey2-1/+33
* expr.c (expand_load_internal): New function. (LOAD_INTERNAL): Use it. From-SVN: r43969
2001-07-11Makefile.in (c-lex.o): Wrap long lines.Neil Booth2-3/+5
* Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h. * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug hooks directly. * dbxout.c (dbx_debug_hooks): Add new hooks. (dbxout_start_new_source_file): Rename dbxout_start_source_file, make static. (dbxout_resume_previous_source_file): Rename dbxout_end_source_file, make static. * dbxout.h (dbxout_start_new_source_file, dbxout_resume_previous_source_file): Delete. * debug.c (do_nothing_debug_hooks): Add new hooks. (debug_nothing_init_finish): Rename debug_nothing_file_charstar. (debug_nothing_int_charstar, debug_nothing_int): New. * debug.h (gcc_debug_hooks): New hooks define, undef, start_source_file and end_source_file. (debug_nothing_init_finish): Rename debug_nothing_file_charstar. (debug_nothing_int_charstar, debug_nothing_int): New. * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. (dwarf2out_start_source_file, dwarf2out_end_source_file, dwarf2out_define, dwarf2out_undef): Make static. * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file, dwarf2out_define, dwarf2out_undef): Remove. * dwarfout.c (dwarf_debug_hooks): Add new hooks. (dwarfout_start_source_file, dwarfout_end_source_file, dwarfout_define, dwarfout_undef): Make static. (dwarfout_start_source_file_check, dwarfout_end_source_file_check): New. (dwarfout_define, dwarfout_finish): Update. * dwarfout.h (dwarfout_start_new_source_file, dwarfout_resume_previous_source_file, dwarfout_define, dwarfout_undef): Remove. * sdbout.c (sdb_debug_hooks): Add new hooks. (sdbout_start_new_source_file): Rename sdbout_start_source_file, make static. (sdbout_resume_previous_source_file): Rename sdbout_end_source_file, make static, take an arg. * sdbout.h (sdbout_start_new_source_file, sdbout_resume_previous_source_file): Delete. * toplev.c (debug_start_source_file, debug_end_source_file, debug_define, debug_undef): Delete. * toplev.h (debug_start_source_file, debug_end_source_file, debug_define, debug_undef): Delete. * java/jcf-parse.c: Include debug.h. (parse_class_file): Update to use debug hooks directly. * java/Make-lang.in (jcf-parse.o): Depend on debug.h. From-SVN: r43952
2001-07-11[multiple changes]Alexandre Petit-Bianco5-18/+49
2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com> * lang-specs.h: Forbit the use if `-femit-class-file{s}' without `-fsyntax-only.' Fixes PR java/3248 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com> * jcf-io.c (find_class): Clarified error message. Fixes PR java/2603 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.h (INNER_ENCLOSING_SCOPE_CHECK): No `this' is fine if the current function is static. Fixes PR java/1970 2001-07-09 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (patch_method_invocation): Add enclosing context to ctor calls if necessary. Fixes PR java/2953 2001-07-09 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (resolve_package): Abort if qualified expression member isn't right. (qualify_ambiguous_name): Don't qualify as type if `this' in use. Fixes PR java/1391 (http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00701.html ) From-SVN: r43927
2001-07-07* verify.c: Don't use // comments.Zack Weinberg2-2/+6
From-SVN: r43840
2001-07-06lang.c (flag_assume_compiled): Removed.Tom Tromey4-30/+13
* lang.c (flag_assume_compiled): Removed. * java-tree.h (flag_assume_compiled): Removed. * lang-options.h: Removed -ffile-list-file, -fuse-boehm-gc, -fhash-synchronization, -fuse-divide-subroutine, -fcheck-references, -femit-class-file, -femit-class-files, -fassume-compiled. Updated --encoding information. Changed -foutput-class-dir to `-d'. From-SVN: r43799
2001-07-05[multiple changes]Alexandre Petit-Bianco4-8/+42
2001-07-03 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (resolve_expression_name): Improved error message for inner class cases. Fixes PR java/1958 2001-06-27 Alexandre Petit-Bianco <apbianco@redhat.com> * jcf-parse.c (gcc_mark_jcf): Test for a finished JCF. * jcf.h (typedef struct JCF): New bitfield `finished.' (JCF_FINISH): Set `finished.' (JCF_ZERO): Reset `finished.' Fixes PR java/2633 2001-06-27 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (class_body_declaration:): Don't install empty instance initializers. Fixes PR java/1314 (http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00321.html ) From-SVN: r43793
2001-07-04c-lex.c (cb_file_change): Pass line number to debug_start_source_file.Daniel Berlin2-1/+6
2001-07-04 Daniel Berlin <dan@cgsoftware.com> * c-lex.c (cb_file_change): Pass line number to debug_start_source_file. (cb_undefine): Pass correct line number to debug_undef. * toplev.c (debug_start_source_file): Add line number to parameters. Pass it along to dwarf2out_start_source_file. (decode_g_option): Stop resetting debug level back to normal when we change debug formats, unless the current level is none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than 3). * toplev.h (debug_start_source_file): Add line number to parameters. * dwarf2out.h (dwarf2out_start_source_file): Add line number to parameters. * dwarf2out.c (dwarf2out_start_source_file): Add line number to parameters. Output debug_macinfo data for starting file if requested. (dwarf2out_end_source_file): Output debug_macinfo data for ending file if requested. (dwarf2out_define): Output debug_macinfo data for defining a macro if requested. (dwarf2out_undef): Output debug_macinfo data for undefining a macro if requested. (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name. (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label. (macinfo_section_label): New. DWARF2 macro info section label. (dwarf2out_init): If we want macro info, output the start label for the section. (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info attribute to the compilation unit die pointing to the macro info. 2001-07-04 Daniel Berlin <dan@cgsoftware.com> * dwarf2out.c (new_loc_list): Move to inside #ifdef DWARF2_DEBUGGING_INFO. (add_loc_descr_to_loc_list): Ditto. (output_loc_list): Ditto. Also, fix thinko in curr not being initialized. (gen_internal_sym): Ditto. From-SVN: r43763
2001-07-04include: New directory.Joseph Myers3-396/+13
* doc/include: New directory. * doc/fdl.texi: Move to doc/include/fdl.texi. * doc/texinfo.tex: Move to doc/include/texinfo.tex. * doc/include/funding.texi, doc/include/gpl.texi: New files. * doc/gcc.texi: Use funding.texi and gpl.texi. * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info, $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi): Update dependencies and use -I $(docdir)/include. f: * g77.texi: Use gpl.texi and funding.texi. Remove Look and Feel section. Add Funding Free Software to invariant sections. * Make-lang.in ($(srcdir)/f/g77.info, f/g77.dvi): Update dependencies and use doc/include in search path. java: * gcj.texi: Use gpl.texi. * Make-lang.in ($(srcdir)/java/gcj.info, java/gcj.dvi): Update dependencies and use doc/include in search path. From-SVN: r43757
2001-07-03parse.y (fix_constructors): Test if a CALL_EXPR invokes `this'.Jeff Sturm2-1/+9
* java/parse.y (fix_constructors): Test if a CALL_EXPR invokes `this'. If so, don't build instance initializers. From-SVN: r43743
2001-06-28diagnostic.c (default_print_error_function): Tweak.Gabriel Dos Reis3-5/+15
* diagnostic.c (default_print_error_function): Tweak. (report_error_function): Likewise. * toplev.h (default_print_error_function): Move to... * diagnostic.h: ...here. Add a `diagnostic_context *' parameter. * tree.h (print_error_function): Move to... * diagnostic.h: ...here. Add a `diagnostic_context *' parameter. ch/ * lang.c: #include diagnostic.h (chill_print_error_function): Add a dummy `diagnostic_context *'. * Makefile.in (lang.o): Depend on diagnostic.h cp/ * error.c (lang_print_error_function): Add a `diagnostic_context *' parameter. Tweak. f/ * Make-lang.in (f/com.o): Depend on diagnostic.h * com.c: #include diagnostic.h (lang_print_error_function): Take a 'diagnostic_context *'. java/ * lang.c: #include diagnostic.h (lang_print_error): Add a `diagnostic_context *' parameter. (java_dummy_print): Likewise. * Make-lang.in (JAVA_LEX_C): Depend on diagnostic.h From-SVN: r43638
2001-06-27class.c (set_super_info): Call `set_class_decl_access_flags.'Alexandre Petit-Bianco5-5/+44
2001-06-27 Alexandre Petit-Bianco <apbianco@redhat.com> * class.c (set_super_info): Call `set_class_decl_access_flags.' (set_class_decl_access_flags): New function. * java-tree.h (set_class_decl_access_flags): New prototype. * jcf-parse.c (handle_innerclass_attribute): Read and set access flags. (parse_class_file): New local `decl_max_locals.' Take wide types into account to compute DECL_MAX_LOCALS. * parse.y (type_import_on_demand_declaration:): Ignore duplicate imports on demand. (http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01718.html ) From-SVN: r43618
2001-06-23zipfile.h: Use GCC_JCF_H instead of JCF_H.Jan van Male2-1/+5
2001-06-22 Jan van Male <jan.vanmale@fenk.wau.nl> * zipfile.h: Use GCC_JCF_H instead of JCF_H. (http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01427.html) From-SVN: r43529
2001-06-20class.c (java_hash_tree_node): Fixed indentation in leading comment.Alexandre Petit-Bianco3-17/+43
2001-06-20 Alexandre Petit-Bianco <apbianco@redhat.com> * class.c (java_hash_tree_node): Fixed indentation in leading comment. * parse.y (do_resolve_class): Moved comments out to leading comment section. Removed local `start', New local `_ht' and `circularity_hash.' Record `enclosing' in hash table and search it to detect circularity. Use `enclosing' as an argument to `lookup_cl.' Free the hash table when done. (http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01318.html ) From-SVN: r43480
2001-06-20re PR java/2319 (invalid UTF-8 sequences should be rejected)Tom Tromey2-10/+28
* lex.c (java_read_char): Disallow invalid and overlong sequences. Fixes PR java/2319. From-SVN: r43475
2001-06-10re PR java/2299 (Use of += for String arrays produces Segfault during ↵Tom Tromey2-14/+39
compilation) 2001-03-20 Tom Tromey <tromey@redhat.com> Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (patch_assignment): Handle the case of a SAVE_EXPR inside an array reference. Insertion of the array store check rewritten. Fixes PR java/2299. (http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00611.html ) Co-Authored-By: Alexandre Petit-Bianco <apbianco@redhat.com> From-SVN: r43146
2001-06-10decl.c (create_primitive_vtable): Don't call make_decl_rtl.Jeff Sturm2-1/+4
2001-06-05 Jeff Sturm <jsturm@one-point.com> * decl.c (create_primitive_vtable): Don't call make_decl_rtl. (http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00265.html ) From-SVN: r43144
2001-06-05expr.c (force_evaluation_order): Match wrapped ctor calls, locate arguments ↵Alexandre Petit-Bianco2-3/+23
accordingly. 2001-06-04 Alexandre Petit-Bianco <apbianco@redhat.com> * expr.c (force_evaluation_order): Match wrapped ctor calls, locate arguments accordingly. (http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00214.html) From-SVN: r42910
2001-06-02cpp.texi, [...]: Move contents to just after title page.Joseph Myers2-1/+5
* doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi: Move contents to just after title page. ch: * chill.texi: Move contents to just after title page. f: * g77.texi: Move contents to just after title page. java: * gcj.texi: Move contents to just after title page. From-SVN: r42808
2001-06-02re PR java/2605 (gcj crashes on .java file containing byte.class.getClass())Alexandre Petit-Bianco2-3/+17
2001-06-01 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (type_literals:): Use `build_incomplete_class_ref' with builtin type. (patch_incomplete_class_ref): Build the class ref, build the class init if necessary, complete the tree. Fixes PR java/2605 (http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00044.html ) From-SVN: r42807
2001-06-01c-tree.texi, [...]: Move to doc subdirectory.DJ Delorie1-4/+4
* c-tree.texi, contrib.texi, cpp.texi, cppinternals.texi, extend.texi, fdl.texi, gcov.texi, invoke.texi, md.texi, objc.texi, rtl.texi, tm.texi, texinfo.tex: Move to doc subdirectory. * install.texi: Move to doc/install-old.texi. * gcc.texi: Move to doc, refer to install-old.texi. * Makefile.in: Reflect move of docs to doc/. * f/Make-lang.in: Ditto. * java/Make-lang.in: Ditto. * doc/.cvsignore: New. From-SVN: r42779
2001-05-31parse.y (lookup_field_wrapper): Test `name' code.Alexandre Petit-Bianco2-5/+22
2001-05-31 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (lookup_field_wrapper): Test `name' code. (resolve_qualified_expression_name): Test `qual_wfl' code. (qualify_ambiguous_name): Handle `CONVERT_EXPR', fixe indentation, handle `qual_wfl' by code. (maybe_build_primttype_type_ref): Test `wfl' code. (http://gcc.gnu.org/ml/gcc-patches/2001-05/msg02180.html ) From-SVN: r42764
2001-05-30parse.y (do_resolve_class): Check for cyclic inheritance during inner class ↵Bryce McKinlay2-6/+26
resolution. 2001-04-27 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * parse.y (do_resolve_class): Check for cyclic inheritance during inner class resolution. (http://gcc.gnu.org/ml/gcc-patches/2001-04/msg01330.html) From-SVN: r42737
2001-05-27Make-lang.in ($(srcdir)/java/gcj.info): Added dependencies on fdl.texi.Theodore Papadopoulo2-5/+11
* Make-lang.in ($(srcdir)/java/gcj.info): Added dependencies on fdl.texi. (java/gcj.dvi): Use TEXI2DVI instead of custom tex calls. Create the dvi file in the java directory. From-SVN: r42658
2001-05-26toplev.c (debug_args, [...]): Mark descriptions for translation.Zack Weinberg1-19/+36
* toplev.c (debug_args, f_options, W_options): Mark descriptions for translation. (display_help): Translate descriptions on output. * cp/lang-options.h, f/lang-options.h, java/lang-options.h, objc/lang-options.h: Mark descriptions for translation. From-SVN: r42618
2001-05-25Standardize header guards.Richard Henderson6-15/+21
From-SVN: r42615
2001-05-23jv-scan.c (version): Update copyright year.Joseph Myers2-1/+5
gcc/java: * jv-scan.c (version): Update copyright year. libjava: * gij.cc (version): Update copyright year. From-SVN: r42505
2001-05-21jcf-parse.c (read_class): If class is from .class or .zip file and it's ↵Per Bothner2-10/+19
already been read... * jcf-parse.c (read_class): If class is from .class or .zip file and it's already been read, don't push/pop parser context. From-SVN: r42407
2001-05-18jvspec.c (lang_specific_pre_link): Re-arrange the linker command line so the ↵Per Bothner2-1/+20
jvgenmain-generated main program... * jvspec.c (lang_specific_pre_link): Re-arrange the linker command line so the jvgenmain-generated main program comes first. From-SVN: r42270
2001-05-15expr.c (build_class_init): Move MODIFY_EXPR outside of COND_EXPR.Jeff Sturm2-6/+11
2000-05-02 Jeff Sturm <jsturm@one-point.com> * expr.c (build_class_init): Move MODIFY_EXPR outside of COND_EXPR. Remove variable `call'. From-SVN: r42134
2001-05-15class.c (build_utf8_ref): Don't generate identifier based on utf8const contents.Tom Tromey2-17/+6
* class.c (build_utf8_ref): Don't generate identifier based on utf8const contents. From-SVN: r42110
2001-05-12java-tree.def (JAVA_EXC_OBJ_EXPR): New.Richard Henderson6-9/+29
* java-tree.def (JAVA_EXC_OBJ_EXPR): New. * expr.c (java_lang_expand_expr): Expand it. (process_jvm_instruction): Build JAVA_EXC_OBJ_EXPR instead of calling build_exception_object_ref. * parse.y (catch_clause_parameter): Likewise. (build_dot_class_method): Likewise. (try_reference_assignconv): Likewise. * check-init.c (check_init): Check JAVA_EXC_OBJ_EXPR not EXC_PTR_EXPR. * jcf-write.c (generate_bytecode_insns): Likewise. From-SVN: r42030
2001-05-08re PR java/2538 (latest gcj no longer compiles apache xerces parser due ↵Alexandre Petit-Bianco2-4/+15
problems with variable declarations and inner classes) 2001-05-07 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (build_unresolved_array_type): Set EXPR_WFL_QUALIFICATION on the newly created wfl. Fixes PR java/2538. Fixes PR java/2535. (http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00438.html ) From-SVN: r41917
2001-05-07re PR java/2598 (Runtime crash regression accessing field from enclosing ↵Alexandre Petit-Bianco2-10/+18
class from inner class) 2001-05-07 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (fix_constructors): Removed unecessary assignment to local. Moved assignment to `this$<n>', fixed comments and indentation. (build_wfl_wrap): Fixed indentation. Fixes PR java/2598, java/2579 and java/2658. (http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00412.html ) From-SVN: r41905
2001-05-03lex.c (java_new_lexer): Call iconv_close on temp handle used to check for ↵Mo DeJong2-0/+6
byte swap. 2001-05-03 Mo DeJong <mdejong@redhat.com> * lex.c (java_new_lexer): Call iconv_close on temp handle used to check for byte swap. (http://gcc.gnu.org/ml/java-patches/2001-q2/msg00185.html ) From-SVN: r41818
2001-05-02call.c: NULL_PTR -> NULL.Kaveh R. Ghazi3-27/+29
cp: * call.c: NULL_PTR -> NULL. * class.c: Likewise. * cvt.c: Likewise. * decl.c: Likewise. * decl2.c: Likewise. * except.c: Likewise. * init.c: Likewise. * rtti.c: Likewise. * search.c: Likewise. * tree.c: Likewise. * typeck.c: Likewise. * typeck2.c: Likewise. f: * com.c: NULL_PTR -> NULL. java: * decl.c: NULL_PTR -> NULL. * jcf-write.c: Likewise. From-SVN: r41762
2001-05-01Make-lang.in ($(srcdir)/java/gcj.info): Added `-I..'.Tom Tromey3-43/+49
* Make-lang.in ($(srcdir)/java/gcj.info): Added `-I..'. (java/gcj.dvi): Added $(srcdir) to TEXINPUTS. * gcj.texi: Updated copyright text. Include fdl.texi. (Top): Link to new node. From-SVN: r41743
2001-05-01* parse.h (REGISTER_IMPORT): Use tree_cons instead of chainon.Per Bothner2-2/+5
From-SVN: r41741
2001-05-01parse.y (java_pop_parser_context): The TREE_VALUE of a link in the ↵Per Bothner2-2/+7
import_list contains the name, not the TREE_PURPOSE. * parse.y (java_pop_parser_context): The TREE_VALUE of a link in the import_list contains the name, not the TREE_PURPOSE. From-SVN: r41739
2001-04-29jcf-io.c (read_zip_member): Cast to long in comparison with signed value.Kaveh R. Ghazi6-8/+23
* jcf-io.c (read_zip_member): Cast to long in comparison with signed value. * jvspec.c (lang_specific_driver): Initialize variables. * mangle.c (find_compression_record_match): Likewise. * typeck.c (build_null_signature): Provide static prototype. Mark parameter with ATTRIBUTE_UNUSED. * verify.c (verify_jvm_instructions): Initialize variable. From-SVN: r41671
2001-04-27parse.y (java_expand_classes): Don't change ctxp_for_generation while ↵Per Bothner2-10/+13
iterating... * parse.y (java_expand_classes): Don't change ctxp_for_generation while iterating, since that could cause gc to lose stuff. From-SVN: r41640
2001-04-26Fix method search wrt scope of inner classes to match JLS2.Per Bothner4-24/+56
From-SVN: r41604
2001-04-26jcf-write.c (generate_bytecode_insns case SWITCH_EXPR): Fix thinko: If a ↵Per Bothner4-15/+36
single case, use if_icmpeq, not ifeq. * jcf-write.c (generate_bytecode_insns case SWITCH_EXPR): Fix thinko: If a single case, use if_icmpeq, not ifeq. * constants.c (find_methodref_with_class_index): New function. (find_methodref_index): Use find_methodref_with_class_index. * java-tree.h (find_methodref_with_class_index): New declaration. * jcf-write.c (generate_bytecode_insns case CALL_EXPR): Don't change DECL_CONTEXT, instead use new find_methodref_with_class_index function. If context changed from interface to class, don't use invokeinterface. From-SVN: r41601
2001-04-26verify.c (verify_jvm_instructions): For field instructions, check that field ↵Per Bothner2-10/+48
index is valid. * verify.c (verify_jvm_instructions): For field instructions, check that field index is valid. For invoke instructions, check that method index is valid. From-SVN: r41600