aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
2002-02-04output.h (SECTION_OVERRIDE): Define.Anthony Green2-1/+20
2002-02-04 Anthony Green <green@redhat.com> * output.h (SECTION_OVERRIDE): Define. * varasm.c (named_section): Obey SECTION_OVERRIDE. java: 2002-02-04 Anthony Green <green@redhat.com> * class.c (build_utf8_ref): Put UTF-8 constants into merged sections if available. From-SVN: r49469
2002-02-04* parse.y (java_expand_classes): Fix typo in static field loop.Bryce McKinlay2-0/+5
From-SVN: r49468
2002-02-02class.c (add_field): Mark static fields external.Richard Henderson4-16/+48
* class.c (add_field): Mark static fields external. (build_class_ref): Remove redundant set. * parse.y (java_expand_classes): Mark static fields of classes to be compiled as local. * jcf-parse.c (parse_class_file): Likewise. From-SVN: r49458
2002-02-01added change for gcj manual.Nic Ferrier1-0/+4
From-SVN: r49418
2002-02-01* gcj.texi (About CNI): New node.Nic Ferrier1-1/+870
From-SVN: r49417
2002-02-01re PR java/5080 (gcc/java/jcf-parse.c:908: `LC_CTYPE' undeclared (first use ↵Craig Rodrigues3-8/+11
in this function)) 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org> PR java/5080 * jcf-parse.c : Check for HAVE_LOCALE_H before using setlocale() with LC_CTYPE as a parameter. * jv-scan.c: Same. From-SVN: r49410
2002-01-31gccbug.in: Follow GNU Coding Standards for --version.Joseph Myers4-8/+13
gcc: * gccbug.in: Follow GNU Coding Standards for --version. Use GCC version rather than GNATS version in --version output. gcc/f: * g77spec.c (lang_specific_driver): Follow GNU Coding Standards for --version. gcc/java: * gjavah.c (version), jcf-dump.c (version), jv-scan.c (version): Follow GNU Coding Standards for --version. libjava: * gnu/gcj/convert/Convert.java: Only include one copyright year in --version output. From-SVN: r49372
2002-01-28expr.c (build_jni_stub): Ensure storage for `meth' is generated.Tom Tromey3-3/+17
* expr.c (build_jni_stub): Ensure storage for `meth' is generated. * parse.y (java_complete_expand_methods): Set current_function_decl before building JNI stub. From-SVN: r49286
2002-01-27reverted accidental checkinTom Tromey2-10/+3
From-SVN: r49272
2002-01-27builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not BUILT_IN_SQRTF.Andreas Tobler4-4/+16
2002-01-26 Andreas Tobler <a.tobler@schweiz.ch> * gcc/java/builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not BUILT_IN_SQRTF. From-SVN: r49271
2002-01-22decl.c (java_init_decl_processing): Use add_predefined_file.Tom Tromey8-41/+451
* decl.c (java_init_decl_processing): Use add_predefined_file. Predefine RawData.java. (predef_filenames): Removed. (java_init_decl_processing): Don't register predef_filenames. * jcf-parse.c (add_predefined_file): New function. (predefined_filename_p): Rewrote. (predefined_filename_p): No longer static. * decl.c (java_init_decl_processing): Call initialize_builtins. * Make-lang.in (JAVA_OBJS): Added builtins.o. (java/builtins.o): New target. * builtins.c: New file. * parse.y (patch_invoke): Use build_call_or_builtin. * java-tree.h (build_call_or_builtin): Declare. (initialize_builtins): Declare. (java_set_exception_lang_code): Removed unused declaration. (PREDEF_FILENAMES_SIZE): Removed. (java_tree_index): Added JTI_PREDEF_FILENAMES. (predef_filenames): New define. (add_predefined_file): Declare. (predefined_filename_p): Declare. * expr.c (expand_invoke): Use build_call_or_builtin. From-SVN: r49091
2002-01-22* parse.y (patch_switch_statement): Fix format specifier.Kaveh R. Ghazi2-2/+6
From-SVN: r49084
2002-01-16More for PR java/5365:Tom Tromey2-3/+16
* gjavah.c (print_stub_or_jni): Cause exception to be thrown by default. (process_file): Generate include for java.lang.UnsupportedOperationExceptions. From-SVN: r48928
2002-01-16* .cvsignore: Add man pages.Andreas Jaeger2-11/+21
From-SVN: r48911
2002-01-16re PR java/5365 (gcjh -stubs does not include correct files)Tom Tromey2-3/+16
Fix for PR java/5365: * gjavah.c (process_file): Turn class name into a file name. From-SVN: r48891
2002-01-16For PR libgcj/5303:Tom Tromey1-2/+14
* Make-lang.in (java.install-man): Handle jv-convert man page. (java.generated-manpages): Added jv-convert.1. (java.uninstall): Remove jv-convert.1. (java.maintainer-clean): Likewise. ($(srcdir)/java/jv-convert.1): New target. * gcj.texi (Top): Link to jv-convert node. (Individual utilities): Likewise. (Invoking jv-convert): New node. From-SVN: r48889
2002-01-14gcj.texi: Fix whitespace and formatting errors in the synopsis of the man pages.Matthias Klose2-9/+14
* gcj.texi: Fix whitespace and formatting errors in the synopsis of the man pages. Update copyright. From-SVN: r48850
2002-01-14For PR libgcj/5303:Tom Tromey2-0/+74
* Make-lang.in (java.install-man): Handle jv-convert man page. (java.generated-manpages): Added jv-convert.1. (java.uninstall): Remove jv-convert.1. (java.maintainer-clean): Likewise. ($(srcdir)/java/jv-convert.1): New target. * gcj.texi (Top): Link to jv-convert node. (Individual utilities): Likewise. (Invoking jv-convert): New node. From-SVN: r48844
2002-01-12jcf-parse.c (get_constant): Don't swap lo/hi for big endian targets when ↵Jeff Sturm2-1/+15
HOST_BITS_PER_WIDE_INT >= 64. * jcf-parse.c (get_constant): Don't swap lo/hi for big endian targets when HOST_BITS_PER_WIDE_INT >= 64. Co-Authored-By: Martin Kahlert <martin.kahlert@infineon.com> From-SVN: r48786
2002-01-06Fix date in last entry.Graham Stott1-1/+1
From-SVN: r48578
2002-01-06class.c (compile_resource_file): Update copyright date.Graham Stott1-0/+7
* class.c (compile_resource_file): Update copyright date. Constify filename parameter. (java-tree.h): Update copyright date. (compile_resource_file): Constify filename parameter. From-SVN: r48577
2002-01-03class.c (compile_resource_file): Update copyright date.Graham Stott2-4/+5
* class.c (compile_resource_file): Update copyright date. Constify filename parameter. java-tree.h: Update copyright date. (compile_resource_file): Constify filename parameter. From-SVN: r48503
2002-01-03jcf-parse.c: Update copyright date.Graham Stott1-0/+5
* gcc/jcf-parse.c: Update copyright date. (yyparse): Constify resource_filename. From-SVN: r48500
2002-01-03tree.h: Update copyright date.Graham Stott1-2/+3
* tree.h: Update copyright date. (IS_EXPR_CODE_CLASS): Add parenthesis. (TREE_SET_CODE): Add whitespace. (TREE_CHECK): Add parenthesis. (TREE_CLASS_CODE): Add parenthesis and wrap long line. (CST_OR_CONSTRUCTOR_CHECK): (EXPR_CHECK): Add parenthis, whitespace and wrap line. (TREE_SYMBOL_REFERENCED): Whitespace. (INT_CST_LT): Likewise. (INT_CST_LT_UNSIGNED): Likewise. (tree_real_cst): Unwrap comment. (tree_string): Likewise. (tree_complex): Likewise. (IDENTIFIER_POINTER): correct cast. (SAVE_EXPR_CONTEXT): Whitespace. (EXPR_WFL_FILENAME_NODE): Likewise. (EXPR_WFL_FILENAME): Remove parenthesis. (DECL_ORIGIN): Add parenthesis. (DECL_FROM_INLINE): Use NULL_TREE. (build_int_2): Whitespace. (build_type_variant): Add parenthesis. * gcc/jcf-parse.c: Update copyright date. (yyparse): Constify resource_filename. From-SVN: r48498
2002-01-02gcc.c (default_compilers): Const-ify.Kaveh R. Ghazi2-1/+5
* gcc.c (default_compilers): Const-ify. * mips-tdump.c (stab_names): Likewise. * mips-tfile.c (map_coff_types, map_coff_storage, map_coff_sym_type, map_coff_derived_type, stabs_symbol, pseudo_ops_t, pseudo_ops): Likewise. * protoize.c (default_include): Likewise f: * com.c (clear_binding_level): Const-ify. (ffecom_arglist_expr_): Likewise. * info.c (ffeinfo_types_): Don't needlessly zero init. * lex.c (ffelex_hash_kludge): Const-ify. java: * parse.y (src_parse_roots): Don't needlessly zero init. libiberty: * cp-demangle.c (long_options): Const-ify. * cplus-dem.c (long_options): Likewise. From-SVN: r48485
2002-01-01parse.y (dump_java_tree): New function.Tom Tromey3-2/+37
* parse.y (dump_java_tree): New function. (source_end_java_method): Call it. (end_class_declaration): Likewise. * lang.c (java_decode_option): Call dump_switch_p. From-SVN: r48439
2001-12-29gen-table.pl: Don't process characters after \uffff.Tom Tromey2-4/+14
* gen-table.pl: Don't process characters after \uffff. Added comment pointing to input file. From-SVN: r48359
2001-12-28gen-table.pl: Const-ify output.Kaveh R. Ghazi3-5/+16
* gen-table.pl: Const-ify output. Document the location of a suitable unicode input file. * chartables.h: Regenerate. From-SVN: r48354
2001-12-27collect2.c (is_ctor_dtor): Const-ify.Kaveh R. Ghazi7-47/+56
* collect2.c (is_ctor_dtor): Const-ify. * m88k-protos.c (output_file_start): Likewise. * m88k.c (m88k_lang_independent_options, output_options, output_file_start): Likewise. * fix-header.c (files_to_ignore, std_include_entry, include_entry, std_include_table, main): Likewise. * protoize.c (longopts): Likewise. * regclass.c (int_reg_class_contents): Likewise. * toplev.c (dump_file, f_options, W_options): Make static. (lang_independent_options, f_options, W_options): Const-ify. * tree-dump.c (dump_file_info): Likewise. * unroll.c (_factor): Make static. java: * chartables.h: Const-ify. * gjavah.c (options): Likewise. * jcf-dump.c (options): Likewise. * jv-scan.c (options): Likewise. * lex.c (java_start_char_p, java_part_char_p): Likewise. * parse.y (binop_lookup): Likewise. From-SVN: r48322
2001-12-23arc.c (arc_hard_regno_mode_ok): Const-ify.Kaveh R. Ghazi7-25/+43
* arc.c (arc_hard_regno_mode_ok): Const-ify. * arc.h (arc_hard_regno_mode_ok): Likewise. * i386.c (x86_64_reg_class_name): Make static. * m68k.c (regno_reg_class): Const-ify. * m68k.h (regno_reg_class): Likewise. * mcore.c (reg_class_from_letter): Likewise. * mcore.h (reg_class_from_letter): Likewise. * sh.c (reg_class_from_letter, ashiftrt_insns, shift_insns, ext_shift_insns, ext_shift_amounts): Likewise. * sh.h (reg_class_from_letter): Likewise. * sparc.c (hard_regno_mode_classes, hard_32bit_mode_classes, hard_64bit_mode_classes): Likewise. * sparc.h (hard_regno_mode_classes): Likewise. * gcc.c (modify_target): Make static. * gengenrtl.c (defs, formats): Likewise. * reload1.c (elim_table_1, init_elim_table): Const-ify. * tradcpp.c (directive, directive_table, handle_directive, skip_if_group, run_directive): Likewise. cp: * decl2.c (lang_f_options): Const-ify. f: * com.c (ffecom_gfrt_volatile_, ffecom_gfrt_complex_, ffecom_gfrt_const_, ffecom_gfrt_type_): Const-ify. java: * Make-lang.in (keyword.h): Pass -C to gperf to const-ify the static arrays that are output. * jvspec.c (jvgenmain_spec): Make static. * keyword.gperf (struct java_keyword, java_keyword): Const-ify. * keyword.h: Regenerate. * lang.c (string_option, process_option_with_no, lang_f_options, lang_W_options): Const-ify. * lex.c (java_lex): Likewise. From-SVN: r48290
2001-12-21boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..Richard Henderson2-21/+28
* boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into .. (get_boehm_type_descriptor): ... here. Arrange for the TREE_TYPE to get set properly. From-SVN: r48261
2001-12-21class.c (compile_resource_file): Set TREE_PUBLIC on the constructor only if ↵Richard Henderson2-2/+8
the target requires collect2. * class.c (compile_resource_file): Set TREE_PUBLIC on the constructor only if the target requires collect2. From-SVN: r48252
2001-12-21* class.c (build_class_ref): Mark _Jv_fooClass DECL_EXTERNAL.Richard Henderson2-0/+5
From-SVN: r48251
2001-12-21reverted erroneous checking -- sorry about thatTom Tromey1-12/+3
From-SVN: r48250
2001-12-21For PR java/4509:Tom Tromey1-3/+12
* parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute CAN_COMPLETE_NORMALLY for the node. * jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't generate code for second branch if first branch can't complete normally. (generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to the loop head if the loop body can't complete normally. From-SVN: r48249
2001-12-21For PR java/4509:Tom Tromey3-3/+23
* parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute CAN_COMPLETE_NORMALLY for the node. * jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't generate code for second branch if first branch can't complete normally. (generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to the loop head if the loop body can't complete normally. From-SVN: r48233
2001-12-21For PR java/4766:Tom Tromey2-38/+88
* jcf-write.c (generate_bytecode_insns) [TRY_FINALLY_EXPR]: Handle case where `finally' clause can't complete normally. From-SVN: r48232
2001-12-21re PR java/5057 (gcj -C erroneously omits <clinit>)Tom Tromey2-19/+27
Fixes PR java/5057: * parse.y (analyze_clinit_body): Added this_class parameter. Check for more cases where we must keep <clinit>. (maybe_yank_clinit): Cleaned up flow control. From-SVN: r48231
2001-12-20decl.c (java_init_decl_processing): Don't initialize finit_leg_identifier_node.Bryce McKinlay3-16/+11
* decl.c (java_init_decl_processing): Don't initialize finit_leg_identifier_node. * java-tree.h (java_tree_index): Remove JTI_FINIT_LEG_IDENTIFIER_NODE. (finit_leg_identifier_node): Remove. (ID_FINIT_P): Don't check for JTI_FINIT_LEG_IDENTIFIER_NODE. From-SVN: r48221
2001-12-20mangle.c (mangle_member_name): Don't special-case for NO_DOLLAR_IN_LABEL.Bryce McKinlay4-30/+14
* mangle.c (mangle_member_name): Don't special-case for NO_DOLLAR_IN_LABEL. * mangle_name.c (unicode_mangling_length): Likewise. (append_unicode_mangled_name): Likewise. * parse.y (make_nested_class_name): Remove dead NO_DOLLAR_IN_LABEL code. From-SVN: r48220
2001-12-20expr.c (build_java_array_length_access): Don't force null pointer check ↵Bryce McKinlay2-1/+7
unless flag_check_references is set. * expr.c (build_java_array_length_access): Don't force null pointer check unless flag_check_references is set. From-SVN: r48219
2001-12-20re PR java/3417 (Downcast on integral types.)Tom Tromey2-14/+25
Fix for PR java/3417: * parse.y (patch_assignment): Added special processing for `return'. (patch_return): Don't convert booleans to integers, and don't special-case `null'. From-SVN: r48208
2001-12-20configure.in (all_diff_excludes, [...]): Remove.Joseph Myers2-1/+4
* configure.in (all_diff_excludes, diff_excludes): Remove. * configure: Regenerate. * Makefile.in (LANG_DIFF_EXCLUDES): Remove. * objc/config-lang.in (diff_excludes): Remove. ada: * config-lang.in (diff_excludes): Remove. ch: * config-lang.in (diff_excludes): Remove. cp: * config-lang.in (diff_excludes): Remove. f: * config-lang.in (diff_excludes): Remove. java: * config-lang.in (diff_excludes): Remove. From-SVN: r48189
2001-12-17Separate user and internals manuals.Joseph Myers2-1/+5
* Makefile.in (info, $(docdir)/gcc.info, dvi, gcc.dvi): Update dependencies. ($(docdir)/gccint.info, gccint.dvi): New targets. (maintainer-clean, install-info, uninstall): Update. * doc/.cvsignore: Add gccint.info*. * doc/include/gcc-common.texi: New file. * doc/gcc.texi: Use it. Adjust to be a user-only manual. Put copyright notice in a macro. Don't include ISBN unless FSFPRINT is defined. * doc/gccint.texi: New file. * doc/configfiles.texi, doc/extend.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi, doc/trouble.texi: Update for separate user and internals manuals. f: * g77.texi, invoke.texi: Update links to GCC manual. java: * gcj.texi: Update link to GCC manual. From-SVN: r48119
2001-12-17parse.y (link_nested_class_to_enclosing): Removed useless statement.Tom Tromey2-1/+5
* parse.y (link_nested_class_to_enclosing): Removed useless statement. From-SVN: r48118
2001-12-16re PR java/5088 (Can't create a java.lang.Object from CNI)Tom Tromey2-9/+7
* mangle.c (mangle_method_decl): Never emit `C2' constructor. Fixes PR java/5088. From-SVN: r48083
2001-12-16ChangeLog, [...]: Fix spelling errors.Joseph Myers12-45/+51
* ChangeLog, Make-lang.in, class.c, expr.c, gcj.texi, java-tree.h, jcf-parse.c, jcf-write.c, lex.c, parse.h, parse.y, verify.c: Fix spelling errors. From-SVN: r48075
2001-12-16c-lex.c (lex_number): Use ISXDIGIT/hex_value.Kaveh R. Ghazi2-5/+7
* c-lex.c (lex_number): Use ISXDIGIT/hex_value. * vax/xm-vms.h (FILE_NAME_NONDIRECTORY): Use ISUPPER/TOLOWER. * fold-const.c (real_hex_to_f): Use hex_value. * real.c (asctoeg): Use hex_value & ISXDIGIT. * toplev.c (toplev_main): Call hex_init. * tradcpp.c (main): Call hex_init. From-SVN: r48068
2001-12-16decl.c (java_init_decl_processing): Build otable_type correctly.Bryce McKinlay2-5/+9
* decl.c (java_init_decl_processing): Build otable_type correctly. otable_decl is an otable_type. From-SVN: r48062
2001-12-15java-tree.h (otable_methods, [...]): New field/global tree definitions.Bryce McKinlay8-27/+307
gcc/java: * java-tree.h (otable_methods, otable_decl, otable_syms_decl, otable_type, otable_ptr_type, method_symbol_type, method_symbols_array_type, method_symbols_array_ptr_type): New field/global tree definitions. (flag_indirect_dispatch): New flag. * decl.c (java_init_decl_processing): Initialize new otable and otable_syms type nodes and decls. Add new field "index" to method_type_node. * class.c (build_method_symbols_entry): New function. (make_method_value): Set "index" to to method's vtable index for virtual methods when indirect-dispatch is not used. (make_class_data): For indirect-dispatch, dont emit the dtable_decl, and set vtable_method_count to -1. Set otable and otable_syms field if indirect-dispatch is used and there was something to put in them. (build_method_symbols_entry): New function. (emit_offset_symbol_table): New function. * expr.c (get_offset_table_index): New function. (build_invokevirtual): Build array reference to otable at the index returned by get_offset_table_index, and use the result as the vtable offset. (build_invokeinterface): Similar. * jcf-parse.c (yyparse): If indirect-dispatch, call emit_offset_symbol_table at the end of compilation, after all classes have been generated. * jvspec.c: Don't pass findirect-dispatch to jvgenmain. * lang.c (flag_indirect_dispatch): Define. (lang_f_options): Add indirect-dispatch flag. libjava: * include/jvm.h (_Jv_VTable::idx_to_offset): New method. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_MakeVTable and _Jv_LinkOffsetTable if needed. * java/lang/Class.h (_Jv_Method): Add "index" field. (_Jv_MethodSymbol): New struct type. (_Jv_LinkOffsetTable, _Jv_LayoutVTableMethods, _Jv_SetVTableEntries, _Jv_MakeVTable): Friends. (otable, otable_syms): New Class fields. * java/lang/natClass.cc (_Jv_LinkOffsetTable): New function. (isVirtualMethod): New static function. (_Jv_LayoutVTableMethods): New function. (_Jv_SetVTableEntries): New function. (_Jv_MakeVTable): New function. From-SVN: r48038