summaryrefslogtreecommitdiffstats
path: root/gcc/java
Commit message (Collapse)AuthorAgeFilesLines
...
* PR java/20056:tromey2005-02-194-15/+61
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95258 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/java:tromey2005-02-142-0/+7
| | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95041 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-02-14 Andrew Haley <aph@redhat.com>aph2005-02-143-13/+50
| | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95015 138bc75d-0d04-0410-961f-82ee72b054a4
* * builtins.c, java-except.h, jcf-parse.c, jv-scan.c, lex.c,kazu2005-02-127-6/+12
| | | | | | | parse-scan.y: Update copyright. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94940 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/15543bothner2005-02-124-35/+23
| | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94928 138bc75d-0d04-0410-961f-82ee72b054a4
* * builtins.c (DEF_BUILTIN): Add COND argument.rth2005-02-103-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94785 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-02-08 Marcin Dalecki <martin@dalecki.de>tromey2005-02-082-1/+6
| | | | | | | | * expr.c (add_type_assertion): Use the proper enumeration type, since this is what htab_find_slot() is expecting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94743 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/cpp.texi: Include gcc-common.texi. Don't define gcctaboptjsm282005-02-062-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94683 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcj.texi (libgcj Runtime Properties): Default library_controltromey2005-02-022-5/+10
| | | | | | | to 'cache'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94612 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/15543rmathew2005-02-023-3/+13
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94598 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/19742:tromey2005-02-022-0/+7
| | | | | | | * gjavah.c (get_field_name): Don't override name for JNI header. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94578 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPRsayle2005-02-012-1/+8
| | | | | | | of unsigned types using iushr and lushr JVM bytecodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94560 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/19738rmathew2005-02-012-27/+40
| | | | | | | | | * gjavah.c (jni_print_float): Do not emit floating-point initialiser for a static final field. (jni_print_double): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94553 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert:mmitchel2005-02-012-12/+13
| | | | | | | | | 2005-01-31 Mark Mitchell <mark@codesourcery.com> * gjavah.c (print_field_info): Mark static data members of floating-point type with "__extension__". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94547 138bc75d-0d04-0410-961f-82ee72b054a4
* * parser.c (cp_parser_primary_expression): Don't complain aboutmmitchel2005-02-012-6/+17
| | | | | | | | | | | floating-point literals in integral constant expressions when !pedantic. * gjavah.c (print_field_info): Mark static data members of floating-point type with "__extension__". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94527 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/9157rmathew2005-02-012-4/+12
| | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94513 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in (java/java-tree-inline.o): Removed.tromey2005-01-252-10/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94224 138bc75d-0d04-0410-961f-82ee72b054a4
* Correct the date for my last ChangeLog entry.rmathew2005-01-251-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94206 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/19070rmathew2005-01-252-2/+10
| | | | | | | | * parse.y (patch_binop): Allow comparisons against NULL only if the other operand is of a reference type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94205 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h (gcj_abi_version): Declare.tromey2005-01-244-5/+70
| | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94174 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/19295sayle2005-01-242-9/+24
| | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94162 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-except.h, java-tree.h: Remove unused prototypes.kazu2005-01-223-7/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94068 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-01-20 Andrew Pinski <pinskia@gcc.gnu.org>tromey2005-01-212-2/+10
| | | | | | | | | PR java/18091: * jcf-write.c (perform_relocations): Don't call memcpy if source and destination are the same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94007 138bc75d-0d04-0410-961f-82ee72b054a4
* * verify-impl.c (get_short): Sign extend.tromey2005-01-172-3/+11
| | | | | | | (get_int): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93772 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (build_jni_stub): Replace mistaken use of TYPE_SIZE_UNITrmathew2005-01-122-2/+7
| | | | | | | with TYPE_SIZE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93227 138bc75d-0d04-0410-961f-82ee72b054a4
* * verify.c: Revert to the version before the BC-ABI merge.rmathew2005-01-102-74/+38
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93147 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/19277rmathew2005-01-102-2/+17
| | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93144 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (process_imports): Allocate (and free) original_name onlymark2005-01-093-9/+34
| | | | | | | | | | | 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(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93109 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcj.texi (Standard Properties): java.ext.dirs is now used.tromey2005-01-052-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92965 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-20 Andrew Haley <aph@redhat.com>aph2004-12-202-1/+5
| | | | | | | * typeck.c: Use fold_convert for ints and booleans. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92419 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-17 Andrew Haley <aph@redhat.com>aph2004-12-174-19/+16
| | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92314 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/18459dannysmith2004-12-131-1/+1
| | | | | | | | Fix ChangeLog entry to refer to correct PR http://gcc.gnu.org/ml/gcc-cvs/2004-12/msg00507.html git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92079 138bc75d-0d04-0410-961f-82ee72b054a4
* gccdannysmith2004-12-132-4/+13
| | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92078 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-07 Andrew Haley <aph@redhat.com>aph2004-12-081-0/+1
| | | | | | | | | PR java/18811: * jcf-parse.c (load_class): Remove sanity test for missing inner class file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91901 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-07 Andrew Haley <aph@redhat.com>aph2004-12-082-6/+5
| | | | | | | | * jcf-parse.c (load_class): Remove sanity test for missing inner class file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91900 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in (JAVA_MANFILES): Added gcj-dbtool.tromey2004-12-063-5/+119
| | | | | | | | | | | | | | | (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". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91785 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/14853:tromey2004-12-064-5/+19
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91778 138bc75d-0d04-0410-961f-82ee72b054a4
* * lang.c (flag_new_verifier): Define.tromey2004-12-033-4/+16
| | | | | | | | | (java_post_options): Set flag_new_verifier if indirect dispatch is being used. * lang.opt (fnew-verifier): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91693 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/14614:tromey2004-12-032-1/+9
| | | | | | | * Make-lang.in (java.install-common): Only install transformed git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91692 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-03 Andrew Haley <aph@redhat.com>aph2004-12-032-1/+13
| | | | | | | | | PR java/18812 * except.c (link_handler): Patch 'outer' field of siblings of the range we're demoting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91690 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-03 Andrew Haley <aph@redhat.com>aph2004-12-032-3/+9
| | | | | | | | | PR java/18697 * class.c (layout_class_method): Don't fail to override a method simply because it has DECL_ARTIFICIAL set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91689 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/16675:tromey2004-12-022-0/+9
| | | | | | | * parse.y (craft_constructor): Special case null_pointer_node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91657 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/18741:tromey2004-12-022-1/+8
| | | | | | | | * java-gimplify.c (java_gimplify_expr): Don't call SET_EXPR_LOCATION unless wrapped tree is an expression. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91645 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-parse.c (set_source_filename): Improvement to Andrew's fix:bothner2004-11-282-7/+18
| | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91411 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (build_expr_wfl): Only declare last_file and last_filenodebothner2004-11-282-2/+8
| | | | | | | local static variables if not USE_MAPPED_LOCATION. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91408 138bc75d-0d04-0410-961f-82ee72b054a4
* * class.c, decl.c, expr.c: Fix comment typos.kazu2004-11-274-3/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91392 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-26 Andrew Pinski <pinskia@physics.uc.edu>pinskia2004-11-266-25/+57
| | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91343 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qsjsm282004-11-255-18/+23
| | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91282 138bc75d-0d04-0410-961f-82ee72b054a4
* * verify-glue.c (vfy_init_name, vfy_clinit_name, vfy_object_type,rth2004-11-252-5/+10
| | | | | | | vfy_string_type, vfy_throwable_type): Use ANSI declaration form. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91278 138bc75d-0d04-0410-961f-82ee72b054a4
* * verify.c (defer_merging): Don't use C++-style comment.tromey2004-11-254-8/+8
| | | | | | | | * verify.h (java_opcode): Added java_opcode_end. * class.c (build_class_ref): Remove C++ comment and old FIXME. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91277 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud