aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
2005-03-08[multiple changes]Bryce McKinlay1-0/+4
2005-03-07 Ranjit Mathew <rmathew@hotmail.com> * lang.c (flag_new_verifier): Enable by default, regardless of ABI. 2005-03-08 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.lang/pr13107_2.xfail: Remove xfail. * testsuite/libjava.lang/pr13107_3.xfail: Likewise. From-SVN: r96114
2005-03-08* decl.c (finish_method): Give methods once-only linkage.Julian Brown2-0/+11
From-SVN: r96106
2005-03-07[multiple changes]Bryce McKinlay5-191/+37
2005-03-04 Bryce McKinlay <mckinlay@redhat.com> * verify-glue.c (vfy_is_assignable_from): Perform static check using can_widen_reference_to if the C++ ABI is in use. (vfy_get_interface_count, vfy_get_interface): Remove unused functions. * verify-impl.c (debug_print, make_utf8_const, init_type, copy_type, type_isresolved, init_state, set_pc, state_get_pc, _Jv_BytecodeVerifier): Clean up unused and disabled functions. (verify_fail): Report the current PC from the verifier context. (free_state): Remove #if 0 block to enable this function. (free_verifier_context): Call free_state on state_list iterator values before freeing them. * expr.c (pop_type_0): Pop correct type for error message when stack contains a multi-word type. 2005-03-04 Ranjit Mathew <rmathew@hotmail.com> * expr.c (build_java_array_length_access): Remove !flag_new_verifier for known NULL array length access. From-SVN: r96044
2005-03-07gcj.texi (Invoking gcj-dbtool): Document '-f'.Tom Tromey2-2/+10
gcc/java: * gcj.texi (Invoking gcj-dbtool): Document '-f'. libjava: * gnu/gcj/tools/gcj_dbtool/Main.java (main): Recognize '-f'. (usage): Document '-f'. From-SVN: r96041
2005-03-06jcf-dump.c, [...]: Update copyright.Kazu Hirata7-6/+11
* jcf-dump.c, jcf-io.c, jcf-reader.c, lang.c, parse.h, typeck.c: Update copyright. From-SVN: r95967
2005-03-06Remove xref code.Ranjit Mathew9-224/+45
* xref.c, xref.h: Remove file. * Make-lang.in (java/xref.o): Remove. * java-tree.h (flag_emit_xref, do_not_fold): Remove declaration. * lang.c (flag_emit_xref): Remove definition. * parse.h (DECL_END_SOURCE_LINE, DECL_INHERITED_SOURCE_LINE): Remove. * typeck.c (convert): Remove use of do_not_fold. * parse.y (do_not_fold): Remove definition. (parser grammar): Remove xref code. (maybe_create_class_interface_decl, create_class): Likewise. (register_fields, method_header, finish_method_declaration): Likewise. (declare_local_variables, source_end_java_method): Likewise. (java_complete_expand_classes): Do not set do_not_fold. (java_complete_expand_method): Remove xref code. (java_expand_classes, resolve_field_access, patch_invoke): Likewise. (java_complete_tree, java_complete_lhs, patch_assignment): Likewise. (patch_binop, build_string_concatenation, patch_array_ref): Likewise. (patch_synchronized_statement, patch_throw_statement): Likewise. (maybe_build_class_init_for_field): Likewise. From-SVN: r95965
2005-03-05c-semantics.c (build_stmt): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS.Kazu Hirata2-2/+7
gcc/ * c-semantics.c (build_stmt): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS. * tree.h (IS_NON_TYPE_CODE_CLASS): Remove. (NON_TYPE_CHECK): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS. java/ * expr.c (build_expr_wfl, expr_add_location): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS. From-SVN: r95942
2005-03-04re PR java/18362 (internal compiler error: in size_binop, at fold-const.c:1598)Andrew Haley2-8/+22
2005-03-04 Andrew Haley <aph@redhat.com> PR java/18362 * class.c (set_method_index): Don't set method_index if it is NULL_TREE. (layout_class_method): Don't complain about "non-static method foo overrides static method" in the case of indirect dispatch. From-SVN: r95888
2005-03-03jcf-io.c (caching_stat): Use __extension__ to avoid pedantic warning.Kaveh R. Ghazi3-8/+11
* jcf-io.c (caching_stat): Use __extension__ to avoid pedantic warning. * Make-lang.in: Don't elide warnings in jcf-io.c. From-SVN: r95819
2005-03-01re PR java/8608 (segmentation fault on compiling bad program)Per Bothner2-24/+25
PR java/8608 * check-init.c (wfl): Remove static. (final_assign_error, check_init): Replace calls to parse_error_context by plain error. (check_init): Save, set, and restore input_location for each exp. From-SVN: r95749
2005-03-01jcf-reader.c (get_attribute): Handle SourceDebugExtension (JSR 45) if ↵Per Bothner3-0/+20
HANDLE_SOURCEDEBUGEXTENSION_ATTRIBUTE... * jcf-reader.c (get_attribute): Handle SourceDebugExtension (JSR 45) if HANDLE_SOURCEDEBUGEXTENSION_ATTRIBUTE is defined. From-SVN: r95748
2005-03-01java-tree.h (IDENTIFIER_HANDLECLASS_VALUE): Remove ancient macro.Per Bothner2-8/+7
* java-tree.h (IDENTIFIER_HANDLECLASS_VALUE): Remove ancient macro. Also improve commenst for IDENTIFIER_CLASS_VALUE. From-SVN: r95747
2005-02-23re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored)Thomas Fitzsimmons2-5/+41
2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * gcj.texi (Invocation): Add descriptions of JvVMInitArgs and JvVMOption. 2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * jni.cc (JNI_CreateJavaVM): Check JNI version. Cast args to JvVMInitArgs. Pass args to _Jv_CreateJavaVM and check return value. Move argument parsing code to prims.cc. * prims.cc (no_properties): Remove. (_Jv_Compiler_Properties): Initialize to NULL. (_Jv_Properties_Count): Initialize to 0. (parse_verbose_args): New function. (parse_init_args): New function. (_Jv_CreateJavaVM): Call parse_init_args. (_Jv_RunMain): Check return value of _Jv_CreateJavaVM. * gcj/cni.h (JvVMOption): New struct. (JvVMInitArgs): Likewise. (JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than void*. * libjava/gcj/javaprims.h (_Jv_VMOption): New struct. (_Jv_VMInitArgs): Likewise. * include/java-props.h (_Jv_Properties_Count): Declare. * java/lang/natRuntime.cc (insertSystemProperties): Use _Jv_Properties_Count in for loop exit condition. * testsuite/libjava.jni/jni.exp (gcj_invocation_compile_c_to_binary): New procedure. (gcj_invocation_test_one): Likewise. (gcj_jni_run): Run JNI invocation API tests. * testsuite/libjava.jni/invocation/PR16923.c, testsuite/libjava.jni/invocation/PR16923.java, testsuite/libjava.jni/invocation/PR16923.out: New test. From-SVN: r95459
2005-02-22re PR java/20056 ('verification failed: incompatible type on stack' with ↵Tom Tromey2-17/+45
--indirect-dispatch) PR java/20056: * verify-impl.c (EITHER): New define. (types_compatible): Handle it. (check_field_constant): Use it. From-SVN: r95404
2005-02-19re PR java/20056 ('verification failed: incompatible type on stack' with ↵Tom Tromey2-2/+6
--indirect-dispatch) PR java/20056: * verify-impl.c (types_equal): Fixed test. From-SVN: r95267
2005-02-19re PR java/20056 ('verification failed: incompatible type on stack' with ↵Tom Tromey4-15/+61
--indirect-dispatch) PR java/20056: * verify-glue.c (vfy_class_has_field): New function. * verify.h (vfy_class_has_field): Declare. * verify-impl.c (check_field_constant): Added 'putfield' argument. (verify_instructions_0): Updated. (types_equal): New function. From-SVN: r95258
2005-02-14re PR java/19921 (wrong argument count for invokeInterface with new ↵Tom Tromey2-0/+7
multidimensional array) gcc/java: PR java/19921: * jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Note the stack effect of multianewarray. libjava: For PR java/19929: * testsuite/libjava.lang/PR19929.out: New file. * testsuite/libjava.lang/PR19929.java: New file. From-SVN: r95041
2005-02-14re PR java/19907 (Incorrect code generated for ManifestElement.java)Andrew Haley3-13/+50
2005-02-14 Andrew Haley <aph@redhat.com> PR java/19907 * expr.c (expand_byte_code): Call promote_arguments(). (promote_arguments): New function. * decl.c (check_local_unnamed_variable): Remve special case for new verifier. (find_local_variable): Promote all boolean types to int when searching for local variable decls. From-SVN: r95015
2005-02-12builtins.c, [...]: Update copyright.Kazu Hirata7-6/+12
* builtins.c, java-except.h, jcf-parse.c, jv-scan.c, lex.c, parse-scan.y: Update copyright. From-SVN: r94940
2005-02-11re PR java/15543 ("jv-scan --complexity" segfaults)Per Bothner4-35/+23
PR java/15543 * parse-scan.y (input_location): Remove variable. (main_input_filename): New - replaces input_filename, which isn't settable if USE_MAPPED_LOCATION. * lex.c (java_init_lex): Wrap some more places in #ifndef JC1-LITE, so we don't reference input_location or wfl_operator in that case. * jv-scan.c (expand_location): Remove - no longer used. (main): Set main_input_filename rather than input_filename. From-SVN: r94928
2005-02-09builtins.c (DEF_BUILTIN): Add COND argument.Richard Henderson3-0/+11
* builtins.c (DEF_BUILTIN): Add COND argument. * tree.h (DEF_BUILTIN): Likewise. * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN, DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to match. (DEF_BUILTIN_STUB): New. (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it. * c-common.c (DEF_BUILTIN): Add COND argument. * tree.c (local_define_builtin): New. (build_common_builtin_nodes): New. ada/ * utils.c (gnat_define_builtin): Remove. (gnat_install_builtins): Use build_common_builtin_nodes. fortran/ * f95-lang.c (gfc_init_builtin_functions): Call build_common_builtin_nodes; do not define any functions handled by it. java/ * builtins.c (initialize_builtins): Call build_common_builtin_nodes. * decl.c (java_init_decl_processing): Initialize const_ptr_type_node. treelang/ * treetree.c (treelang_init_decl_processing): Call build_common_builtin_nodes. From-SVN: r94785
2005-02-08expr.c (add_type_assertion): Use the proper enumeration type, since this is ↵Marcin Dalecki2-1/+6
what htab_find_slot() is expecting. 2005-02-08 Marcin Dalecki <martin@dalecki.de> * expr.c (add_type_assertion): Use the proper enumeration type, since this is what htab_find_slot() is expecting. From-SVN: r94743
2005-02-06cpp.texi: Include gcc-common.texi.Joseph Myers2-1/+5
* doc/cpp.texi: Include gcc-common.texi. Don't define gcctabopt macro locally. Don't give last revision date. Use GCC version number from gcc-common.texi. * doc/cppinternals.texi: Include gcc-common.texi. Don't give last revision date. Use GCC version number from gcc-common.texi. Describe being a library as current state rather than as 3.x history. * doc/gcc.texi: Remove last update date. * doc/gccint.texi: Likewise. Update copyright dates. * doc/install.texi: Update copyright dates. fortran: * gfortran.texi: Don't give last update date. java: * gcj.texi: Update copyright dates. treelang: * treelang.texi: Don't use local treelang version number. Don't give last update date. From-SVN: r94683
2005-02-02gcj.texi (libgcj Runtime Properties): Default library_control to 'cache'.Tom Tromey2-5/+10
* gcj.texi (libgcj Runtime Properties): Default library_control to 'cache'. From-SVN: r94612
2005-02-02re PR java/15543 ("jv-scan --complexity" segfaults)Ranjit Mathew3-3/+13
PR java/15543 * parse-scan.y (formal_parameter): Use $2 (type) instead of $$ (modifiers) when square brackets are present in a declaration for a final paramter. * jv-scan.c (main): Set input_filename and input_line. From-SVN: r94598
2005-02-02re PR java/19742 (gcjh shouldn't mangle names in JNI output.)Tom Tromey2-0/+7
PR java/19742: * gjavah.c (get_field_name): Don't override name for JNI header. From-SVN: r94578
2005-02-01jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR of unsigned ↵Roger Sayle2-1/+8
types using iushr and lushr JVM bytecodes. * jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR of unsigned types using iushr and lushr JVM bytecodes. From-SVN: r94560
2005-02-01re PR java/19738 (gcjh generates invalid class member floating-point ↵Ranjit Mathew2-27/+40
initialisers) PR java/19738 * gjavah.c (jni_print_float): Do not emit floating-point initialiser for a static final field. (jni_print_double): Likewise. From-SVN: r94553
2005-02-01revert: gjavah.c (print_field_info): Mark static data members of ↵Mark Mitchell2-12/+13
floating-point type with "__extension__". Revert: 2005-01-31 Mark Mitchell <mark@codesourcery.com> * gjavah.c (print_field_info): Mark static data members of floating-point type with "__extension__". From-SVN: r94547
2005-02-01parser.c (cp_parser_primary_expression): Don't complain about floating-point ↵Mark Mitchell2-6/+17
literals in integral constant expressions... * parser.c (cp_parser_primary_expression): Don't complain about floating-point literals in integral constant expressions when !pedantic. * gjavah.c (print_field_info): Mark static data members of floating-point type with "__extension__". From-SVN: r94527
2005-02-01re PR java/9157 (SEGV on bad java source)Ranjit Mathew2-4/+12
PR java/9157 * parse.y (build_string_concatenation): Remove redundant if. (patch_conditional_expr): Attempt to patch_string() the condition of a ?: as well, in addition to its other operands. From-SVN: r94513
2005-01-25* Make-lang.in (java/java-tree-inline.o): Removed.Tom Tromey2-10/+5
From-SVN: r94224
2005-01-25Correct the date for my last ChangeLog entry.Ranjit Mathew1-1/+1
From-SVN: r94206
2005-01-25re PR java/19070 (internal compiler error: in generate_bytecode_conditional, ↵Ranjit Mathew2-2/+10
at java/jcf-write.c:1271) PR java/19070 * parse.y (patch_binop): Allow comparisons against NULL only if the other operand is of a reference type. From-SVN: r94205
2005-01-24java-tree.h (gcj_abi_version): Declare.Tom Tromey4-5/+70
* java-tree.h (gcj_abi_version): Declare. * class.c (make_class_data): Push gcj_abi_version into "next" field. Renamed field. * decl.c (gcj_abi_version): New global. (parse_version): New function. (java_init_decl_processing): Call it. Renamed 'next' field. Include version.h. (GCJ_BINARYCOMPAT_ADDITION): New define. From-SVN: r94174
2005-01-24re PR java/19295 (Incorrect bytecode produced for bitwise AND)Roger Sayle2-9/+24
PR java/19295 * jcf-write.c (generate_bytecode_insns): Conversions between integer types of the same precision shouldn't generate widening or narrowing conversion bytecodes. * testsuite/libjava.compile/PR19295.java: New test case. From-SVN: r94162
2005-01-22* java-except.h, java-tree.h: Remove unused prototypes.Kazu Hirata3-7/+4
From-SVN: r94068
2005-01-21re PR java/18091 (Valgrind errors building libjava)Andrew Pinski2-2/+10
2005-01-20 Andrew Pinski <pinskia@gcc.gnu.org> PR java/18091: * jcf-write.c (perform_relocations): Don't call memcpy if source and destination are the same. From-SVN: r94007
2005-01-17verify-impl.c (get_short): Sign extend.Tom Tromey2-3/+11
* verify-impl.c (get_short): Sign extend. (get_int): Likewise. From-SVN: r93772
2005-01-12expr.c (build_jni_stub): Replace mistaken use of TYPE_SIZE_UNIT with TYPE_SIZE.Ranjit Mathew2-2/+7
* expr.c (build_jni_stub): Replace mistaken use of TYPE_SIZE_UNIT with TYPE_SIZE. From-SVN: r93227
2005-01-10* verify.c: Revert to the version before the BC-ABI merge.Ranjit Mathew2-74/+38
From-SVN: r93147
2005-01-10re PR java/19277 (allows array.length++ although it is final)Ranjit Mathew2-2/+17
PR java/19277 * check-init.c (check_init): Take care of references that do not have an explicit final variable declaration (e.g. array length access) for pre/post in/de-crement operators. From-SVN: r93144
2005-01-09parse.y (process_imports): Allocate (and free) original_name only when not ↵Mark Wielaard3-9/+34
already defined. * parse.y (process_imports): Allocate (and free) original_name only when not already defined. * jcf-parse.c (read_class): Free results of find_class() and lrealpath(). (java_parse_file): Keep pointer to head of file_list and free when done. Free result of lrealpath(). From-SVN: r93109
2005-01-05* gcj.texi (Standard Properties): java.ext.dirs is now used.Tom Tromey2-1/+5
From-SVN: r92965
2004-12-20typeck.c: Use fold_convert for ints and booleans.Andrew Haley2-1/+5
2004-12-20 Andrew Haley <aph@redhat.com> * typeck.c: Use fold_convert for ints and booleans. From-SVN: r92419
2004-12-17re PR java/18931 (Java bytecode ICE in except.c remove_unreachable_regions)Andrew Haley4-19/+16
2004-12-17 Andrew Haley <aph@redhat.com> PR java/18931 * typeck.c (convert): Use a CONVERT_EXPR when converting to BOOLEAN_TYPE or CHAR_TYPE. (convert_to_boolean, convert_to_char) : Remove. * convert.h (convert_to_boolean, convert_to_char) : Remove. * expr.c (expand_load_internal): Do type conversion if type is not as required. From-SVN: r92314
2004-12-13re PR target/18459 (gcj no longer works on win32)Danny Smith1-1/+1
PR target/18459 Fix ChangeLog entry to refer to correct PR http://gcc.gnu.org/ml/gcc-cvs/2004-12/msg00507.html From-SVN: r92079
2004-12-13defaults.h (TARGET_USE_JCR_SECTION): New macro.Danny Smith2-4/+13
gcc PR/18549 * defaults.h (TARGET_USE_JCR_SECTION): New macro. * doc/tm.texi (TARGET_USE_JCR_SECTION): Document it. * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Override default. gcc/java PR/18549 * class.c (emit_register_classes): Use TARGET_USE_JCR_SECTION. Update comment. From-SVN: r92078
2004-12-08re PR java/18811 (rhug build problem, regression?)Andrew Haley1-0/+1
2004-12-07 Andrew Haley <aph@redhat.com> PR java/18811: * jcf-parse.c (load_class): Remove sanity test for missing inner class file. From-SVN: r91901
2004-12-08jcf-parse.c (load_class): Remove sanity test for missing inner class file.Andrew Haley2-6/+5
2004-12-07 Andrew Haley <aph@redhat.com> * jcf-parse.c (load_class): Remove sanity test for missing inner class file. From-SVN: r91900