aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
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
2004-12-06Make-lang.in (JAVA_MANFILES): Added gcj-dbtool.Tom Tromey3-5/+119
* Make-lang.in (JAVA_MANFILES): Added gcj-dbtool. (java.uninstall): Likewise. (java.maintainer-clean): Likewise. (.INTERMEDIATE): Likewise. (java.install-man): Likewise. (gcj-dbtool.pod): New target. * gcj.texi (Code Generation): Document -findirect-dispatch. (libgcj Runtime Properties): Document gnu.gcj.precompiled.db.path. (Top): Link to "Invoking gcj-dbtool". From-SVN: r91785
2004-12-06re PR java/14853 (Assignment to final field permitted when compiling to native)Tom Tromey4-5/+19
PR java/14853: * java-tree.h (extract_field_decl): Declare. * parse.y (extract_field_decl): Renamed from strip_out_static_field_access_decl. No longer static. * check-init.c (get_variable_decl): Unwrap COMPOUND_EXPRs. From-SVN: r91778
2004-12-03lang.c (flag_new_verifier): Define.Tom Tromey3-4/+16
* lang.c (flag_new_verifier): Define. (java_post_options): Set flag_new_verifier if indirect dispatch is being used. * lang.opt (fnew-verifier): Removed. From-SVN: r91693
2004-12-03re PR bootstrap/14614 (Double target prefixed gcjh)Tom Tromey2-1/+9
PR bootstrap/14614: * Make-lang.in (java.install-common): Only install transformed From-SVN: r91692
2004-12-03re PR java/18812 (ICE in catalina/common/lib/naming-resources.jar)Andrew Haley2-1/+13
2004-12-03 Andrew Haley <aph@redhat.com> PR java/18812 * except.c (link_handler): Patch 'outer' field of siblings of the range we're demoting. From-SVN: r91690
2004-12-03re PR java/18697 (Miscompilation of GtkMenuItemPeer.setParent(MenuItem))Andrew Haley2-3/+9
2004-12-03 Andrew Haley <aph@redhat.com> PR java/18697 * class.c (layout_class_method): Don't fail to override a method simply because it has DECL_ARTIFICIAL set. From-SVN: r91689
2004-12-02re PR java/16675 (Null parameter values for anonymous constructor invocation ↵Tom Tromey2-0/+9
require explicit cast) PR java/16675: * parse.y (craft_constructor): Special case null_pointer_node. From-SVN: r91657
2004-12-02re PR java/18741 (ICE tree check: expected class 'expression', have ↵Tom Tromey2-1/+8
'declaration' (var_decl)) PR java/18741: * java-gimplify.c (java_gimplify_expr): Don't call SET_EXPR_LOCATION unless wrapped tree is an expression. From-SVN: r91645
2004-11-27jcf-parse.c (set_source_filename): Improvement to Andrew's fix...Per Bothner2-7/+18
* jcf-parse.c (set_source_filename): Improvement to Andrew's fix: Fix fencepost error in 'i', which got executed one too many times. Also, fold memcpy into explicit loop, as originally intended. Also, free temporary 'buf' which otherwise leaks. From-SVN: r91411
2004-11-27expr.c (build_expr_wfl): Only declare last_file and last_filenode local ↵Per Bothner2-2/+8
static variables if... * expr.c (build_expr_wfl): Only declare last_file and last_filenode local static variables if not USE_MAPPED_LOCATION. From-SVN: r91408
2004-11-27* class.c, decl.c, expr.c: Fix comment typos.Kazu Hirata4-3/+7
From-SVN: r91392
2004-11-26re PR java/18305 (Class initialization optimization is not done when ↵Andrew Pinski6-25/+57
compiled from .class) 2004-11-26 Andrew Pinski <pinskia@physics.uc.edu> PR java/18305 * decl.c (end_java_method): Call attach_init_test_initialization_flags on all the init_decls. * parse.y (attach_init_test_initialization_flags): Move to ... * expr.c (attach_init_test_initialization_flags): here and support BIND_EXPR also. * java-tree.h (attach_init_test_initialization_flags): Prototype. * jcf-parse.c (parse_class_file): Don't disable class init optimization. From-SVN: r91343
2004-11-25darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs instead of `%s' in diagnostic.Joseph Myers5-18/+23
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs instead of `%s' in diagnostic. cp: * g++spec.c, lex.c: Avoid ` as left quote in diagnostics. fortran: * f95-lang.c, gfortranspec.c, trans-decl.c: Avoid ` as left quote in diagnostics. java: * gjavah.c, jcf-dump.c, jv-scan.c, jvspec.c: Avoid ` as left quote in diagnostics. From-SVN: r91282
2004-11-25verify-glue.c (vfy_init_name, [...]): Use ANSI declaration form.Richard Henderson2-5/+10
* verify-glue.c (vfy_init_name, vfy_clinit_name, vfy_object_type, vfy_string_type, vfy_throwable_type): Use ANSI declaration form. From-SVN: r91278
2004-11-25verify.c (defer_merging): Don't use C++-style comment.Tom Tromey4-8/+8
* verify.c (defer_merging): Don't use C++-style comment. * verify.h (java_opcode): Added java_opcode_end. * class.c (build_class_ref): Remove C++ comment and old FIXME. From-SVN: r91277
2004-11-25verify-impl.c (vfy_push_type): Removed bogus "return".Tom Tromey2-3/+10
* verify-impl.c (vfy_push_type): Removed bogus "return". (initialize_stack): Use vfy_alloc and vfy_free. (verify_instructions_0): Likewise. From-SVN: r91276
2004-11-25* Merged gcj-abi-2-dev-branch to trunk.Tom Tromey20-313/+5794
(Actual changes too large to list in the commit message; see ChangeLog.) From-SVN: r91270
2004-11-24c-opts.c (c_common_post_options): Don't clear flag_inline_functions.Steven Bosscher3-17/+11
gcc/ * c-opts.c (c_common_post_options): Don't clear flag_inline_functions. * dojump.c (clear_pending_stack_adjust): Remove check on flag_inline_functions, it's always true. * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter that can never trigger. * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at flag_inline_trees, now that flag_inline_functions is never cleared. * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set flag_inline_functions at optimization levels greater than or equal to 3. This is already done by default. ada/ * misc.c (gnat_post_options): Don't clear flag_inline_functions. cp/ * decl.c (cxx_init_decl_processing): Don't clear flag_inline_functions. fortran/ * options.c (gfc_post_options): Don't clear flag_inline_functions. java/ * class.c (make_class_data): Don't check flag_inline_functions. * lang.c (flag_really_inline): Remove unused flag. (java_handle_option): Don't set it here. Remove special handling of flag_inline_functions for Java. (java_init): Don't set flag_inline_trees here. Already done... (java_post_options): ...here. Don't clear flag_inline_functions. From-SVN: r91190
2004-11-24expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR and ↵Steven Bosscher7-12/+93
LABELED_BLOCK_EXPR. gcc/ * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR. * gimplify.c (gimplify_labeled_block_expr): Remove. (gimplify_exit_block_expr): Remove. (gimplify_expr): Don't call them. * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR. (estimate_num_insns_1): Likewise. (walk_tree): Likewise. * tree-pretty-print.c (dump_generic_node): Don't handle EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR. * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def. (LABELED_BLOCK_EXPR): Likewise. * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h. (LABELED_BLOCK_BODY): Likewise. (EXIT_BLOCK_LABELED_BLOCK): Likewise. (EXIT_BLOCK_RETURN): Removed. java/ * java-gimplify.c (java_gimplify_labeled_block_expr): New function. (java_gimplify_exit_block_expr): New function. (java_gimplify_expr): Use them to gimplify EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR. * java-tree.def (LABELED_BLOCK_EXPR): Moved from tree.def. (EXIT_BLOCK_EXPR): Likewise. * java-tree.h (LABELED_BLOCK_LABEL): Moved from tree.h. (LABELED_BLOCK_BODY): Likewise. (EXIT_BLOCK_LABELED_BLOCK): Likewise. * jcf-write.c (generate_bytecode_insns): Don't handle the unused EXIT_BLOCK_RETURN operand. Use EXIT_BLOCK_LABELED_BLOCK instead of TREE_OPERAND. * lang.c (java_tree_inlining_walk_subtrees): Handle EXIT_BLOCK_EXPR. (java_dump_tree): Use LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY, and EXIT_BLOCK_LABELED_BLOCK instead of TREE_OPERAND. Don't handle the second operand of EXIT_BLOCK_EXPR. * parse.y (find_expr_with_wfl): Use LABELED_BLOCK_BODY instead of TREE_OPERAND. (build_bc_statement): Use build1 to build EXIT_BLOCK_EXPR nodes. From-SVN: r91149
2004-11-23xref.h (xref_flag_value): Remove.Ben Elliston3-46/+11
* xref.h (xref_flag_value): Remove. (xref_set_data, xref_get_data): Likewise. (xref_set_current_fp): Likewise. (XREF_NONE): Likewise. (XREF_GET_DATA): Likewise. * xref.c (xref_flag_value): Remove. (xref_set_data, xref_get_data): Likewise. (xref_set_current_fp): Likewise. From-SVN: r91078
2004-11-23gjavah.c (output_directory): Make static.Ben Elliston2-2/+7
* gjavah.c (output_directory): Make static. (temp_directory): Likewise. From-SVN: r91074
2004-11-15decl.c (instn_ptr_type_node): Removed.Tom Tromey2-7/+7
* decl.c (instn_ptr_type_node): Removed. (lineNumbers_ptr_type_node): Removed. (jint_type): Removed. (jint_ptr_type): Removed. From-SVN: r90693
2004-11-13Makefile.in: Add html support.Mike Stump1-4/+11
* Makefile.in: Add html support. * java/Make-lang.in: Likewise. * fortran/Make-lang.in: Likewise. * treelang/Make-lang.in: Likewise. * doc/install.texi: Likewise. * doc/makefile.texi: Likewise. * doc/sourcebuild.texi: Likewise. From-SVN: r90577