summaryrefslogtreecommitdiffstats
path: root/gcc/java
Commit message (Collapse)AuthorAgeFilesLines
...
* * verify-impl.c (vfy_push_type): Removed bogus "return".tromey2004-11-252-3/+10
| | | | | | | | (initialize_stack): Use vfy_alloc and vfy_free. (verify_instructions_0): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91276 138bc75d-0d04-0410-961f-82ee72b054a4
* * Merged gcj-abi-2-dev-branch to trunk.tromey2004-11-2520-313/+5794
| | | | | | | | (Actual changes too large to list in the commit message; see ChangeLog.) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91270 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/steven2004-11-243-17/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91190 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/steven2004-11-247-12/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91149 138bc75d-0d04-0410-961f-82ee72b054a4
* * xref.h (xref_flag_value): Remove.bje2004-11-233-46/+11
| | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91078 138bc75d-0d04-0410-961f-82ee72b054a4
* * gjavah.c (output_directory): Make static.bje2004-11-232-2/+7
| | | | | | | (temp_directory): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91074 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c (instn_ptr_type_node): Removed.tromey2004-11-152-7/+7
| | | | | | | | | (lineNumbers_ptr_type_node): Removed. (jint_type): Removed. (jint_ptr_type): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90693 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Add html support.mrs2004-11-131-4/+11
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90577 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-09 Andrew Pinski <pinskia@physics.uc.edu>pinskia2004-11-094-11/+27
| | | | | | | | | | | | | PR java/15576 * check-init.c (check_init): Ignore DECL_EXPR. * expr.c (always_initialize_class_p): Reenable. (build_class_init): Use a variable to store the decl. Also use boolean_false_node instead of integer_zero_node. * parse.y (attach_init_test_initialization_flags): Add a decl_expr to the block. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90343 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/16843:tromey2004-11-082-24/+72
| | | | | | | | | | | * gjavah.c (HANDLE_END_FIELD): Call print_field_info when generating a JNI header. (print_field_info): Handle JNI headers. (jni_print_float): Likewise. (jni_print_double): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90277 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>pinskia2004-11-082-8/+4
| | | | | | | * decl.c (end_java_method): Remove duplicated code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90264 138bc75d-0d04-0410-961f-82ee72b054a4
* * lex.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_Hgerald2004-11-062-1/+11
| | | | | | | as well. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90168 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-11-02 Bryce McKinlay <mckinlay@redhat.com>bryce2004-11-022-1/+56
| | | | | | | | | | PR java/17265 * class.c: Reinstate 2004-08-18 patch. (make_local_function_alias): Don't create an alias for extern (native) functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89993 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/17265ebotcazou2004-10-222-44/+7
| | | | | | | | * class.c (make_local_function_alias): Revert 2004-08-18 change. (make_method_value): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89443 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-21 Andrew Haley <aph@redhat.com>aph2004-10-212-1/+13
| | | | | | | | PR java/18091: * jcf-parse.c (set_source_filename): Add code to build new sfname. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89376 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in (java/parse.o-warn, java/parse-scan.o-warn):steven2004-10-182-0/+9
| | | | | | | New rules to work around old Bison warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89198 138bc75d-0d04-0410-961f-82ee72b054a4
* * class.c (ident_subst): Always alloca buffer.steven2004-10-178-10/+31
| | | | | | | | | | | | | | | | | | * java-opcodes.h (LAST_AND_UNUSED_JAVA_OPCODE): Add this dummy opcode after including javaop.def. * jcf-dump.c (CHECK_PC_IN_RANGE): Return 0 from the arm of the conditional expression that exits, to avoid warnings. * verify.c (CHECK_PC_IN_RANGE): Mark the __GNUC__ definition as a user of an extension. * win32-host.c: Move check down to have non-empty file when WIN32 is not defined. * Make-lang.in (java-warn): Add STRICT_WARN. (java/jcf-io.o-warn): Don't have Werror for this file. * jcf-io.c (caching_stat): Add FIXME for non-POSIX scandir use. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89184 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (expr_add_location): Move declaration to before allhp2004-10-164-5/+14
| | | | | | | | | statements. * parse.y (java_expand_classes): Ditto. * lex.c (java_peek_unicode): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89152 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 andrmathew2004-10-1511-195/+219
| | | | | | | | | | | | | | | | | | | | | rename parameter 'msg' to 'msgid' in function declaration. (issue_warning_error_from_context): Likewise. (yyerror): Rename parameter 'msg' to 'msgid'. (all over): Use new quoting style for diagnostics. * check-init.c: Use %<, %> and %q for quoting in diagnostics, if possible, else convert `foo' to 'foo'. * class.c: Likewise. * decl.c: Likewise. * expr.c: Likewise. * jcf-io.c: Likewise. * jcf-parse.c: Likewise. * lang.c: Likewise. * lex.c: Likewise. * parse.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89110 138bc75d-0d04-0410-961f-82ee72b054a4
* * boehm.c, builtins.c, java-except.h, jcf-io.c, jcf-path.c,kazu2004-10-1512-11/+17
| | | | | | | | jcf.h, lang-specs.h, lex.c, lex.h, resource.c, win32-host.c: Update copyright. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89100 138bc75d-0d04-0410-961f-82ee72b054a4
* Speed up walk_tree by introducing a special-purpose hash table.austern2004-10-142-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pointer-set.c: New file, special-purpose hash table. * pointer-set.h: New file. * tree.h (struct pointer_set_t): Declare as opaque type. (tree_walk): Last argument is pointer_set_t* now. * tree-inline.c (WALK_SUBTREE): Convert from htab to pset. (walk_type_fields): (walk_tree): Convert from htab_t to pointer_set_t for keeping track of which nodes have already been visited. (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t. * cgraphunit.c (cgraph_create_edges): Likewise. (cgraph_characterize_statics_local): Likewise. * tree-dfa.c (collect_dfa_stats): Likewise. * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is pointer_set_t* now. * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise. * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type of walk_subtrees is pointer_set_t* now. * Makefile.in (OBJS-common): add pointer-set.o (tree-inline.o): Depends on pointer-set.h (tree-dfa.o): Likewise (cgraphunit.o): Likewise * cp/Make-lang.in (pt.o): depends on pointer-set.h * cp/cp-tree.h (cp_walk_subtrees): Last argument is pointer_set_t* now. * cp/pt.c (struct pair_fn_data): Use pointer_set_t, not htab_t (for_each_template_parm): Convert from htab_t to pointer_set_t. * cp/tree.c (cp_walk_subtrees): Last argument is pointer_set_t* now. * java/lang.c (java_tree_inlining_walk_subtrees): Last arg is struct pointer_set_t* now. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89062 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/15578:tromey2004-10-133-5/+17
| | | | | | | | | * lang.opt (--extdirs): Document. * jvspec.c (lang_specific_driver): Recognize -encoding and -extdirs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88991 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (issue_warning_error_from_context): Use va_list *uweigand2004-10-062-8/+15
| | | | | | | | | instead of va_list parameter. (parse_error_context): Update call. (parse_warning_context): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88605 138bc75d-0d04-0410-961f-82ee72b054a4
* * pretty-print.c: Include tree.h.zack2004-10-063-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (pp_base_prepare_to_format): New function, logic from text_specifies_location. (pp_base_format_text): Use gcc_assert. * pretty-print.h (pp_prepare_to_format): New macro. (pp_base_prepare_to_format): Prototype. * diagnostic.c (text_specifies_location): Delete. (bug_report_request): Delete. (diagnostic_set_info): Don't call text_specifies_location. (diagnostic_action_after_output): Put text from bug_report_request inline here. Use gcc_unreachable. (diagnostic_report_current_function): Fix comment. (diagnostic_report_diagnostic): Clarify logic for error recursion. Call pp_prepare_to_format before diagnostic_starter. (trim_filename): Use IS_DIR_SEPARATOR. (fatal_error, internal_error): Use gcc_unreachable. (error_recursion): Call diagnostic_action_after_output to issue the bug_report_request message and exit. * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies. * c-parse.in: Add list of diagnostic messages to insulate translation template from version of yacc/bison used to compile the grammar. java: * parse.y, parse-scan.y: Add list of diagnostic messages to insulate translation template from version of yacc/bison used to compile the grammar. treelang: * parse.y: Add list of diagnostic messages to insulate translation template from version of yacc/bison used to compile the grammar. po: * gcc.pot: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88590 138bc75d-0d04-0410-961f-82ee72b054a4
* Prepare for %q, %< and %> in diagnostic message strings.rmathew2004-10-053-12/+34
| | | | | | | | | | | | | | * java-tree.h (parse_error_context): remove ATTRIBUTE_PRINTF_2. Name second parameter 'msgid'. * parse.y: Additionally include pretty-print.h and diagnostic.h. (issue_warning_error_from_context): Use pretty-printer functions instead of vsprintf for constructing formatted messages. Rename parameter 'msg' to 'msgid'. (parse_error_context): Rename parameter 'msg' to 'msgid'. (parse_warning_context): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88562 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-10-05 Andrew Haley <aph@redhat.com>aph2004-10-052-6/+39
| | | | | | | | | | | | | | PR java/17779 * jcf-parse.c (parse_zip_file_entries): If a class has a superclass and a TYPE_SIZE of zero, lay it out. 2004-09-30 Andrew Haley <aph@redhat.com> PR java/17733 * jcf-parse.c (compute_class_name): Rewrite. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88556 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.hubicka2004-10-012-1/+5
| | | | | | | | | | | | | | | | | | | | | | * cgraphunit.c (cgraph_build_static_cdtor): Likewise. * toplev.h (tree_rest_of_compilation): Update prototype. * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument. * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation. * semantics.c (expand_body): Update call of tree_rest_of_compilation. * f95-lang.c (gfc_expand_function): Update call of tree_rest_of_compilation. * trans-decl.c (gfc_generate_constructors): Likewise. * java.c (java_expand_body): Update call of tree_rest_of_compilation. * treetree.c (treeland_expand_function): Update call of tree_rest_of_compilation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88396 138bc75d-0d04-0410-961f-82ee72b054a4
* * lex.c: Fix a comment typo.kazu2004-10-012-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88394 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h: Fix a comment typo.kazu2004-10-012-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88393 138bc75d-0d04-0410-961f-82ee72b054a4
* Simplify lexer. Implement --enable-mapped-location support.bothner2004-09-307-726/+1081
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * jcf-parse.c (parse_class_file): Use linemap_line_start. (parse_source_file_1): Pass filename as extra parameter, so we can call linemap_add and set input_location here, rather than in both callers. (read_class): Pass copied filename to parse_source_file_1. Don't initialize wfl_operator - only needed for source compilation. (read_class, jcf_parse): Call linemap_add with LC_LEAVE. * lex.h: Remove a bunch of debugging macros. * lex.h (struct_java_line, struct java_error): Remove types. (JAVA_COLUMN_DELTA): Remove - use java_lexer.next_colums instead. (struct java_lc_s): Remove prev_col field. (struct java_lexer): New fields next_unicode, next_columns, and avail_unicode. New position field, and maybe token_start field. Don't need hit_eof field - use next_unicode == -1 instead. (JAVA_INTEGERAL_RANGE_ERROR): Rename to JAVA_RANGE_ERROR. (JAVA_RANGE_ERROR, JAVA_FLOAT_ANGE_ERROR): Update accordingly. * parse.h: Various changes for USE_MAPPED_LOCATION. (EXPR_WFL_EMIT_LINE_NOTE): XXX (BUILD_EXPR_WFL, EXPR_WFL_ADD_COL): Remove no-longer-used macros. (struct parser_ctxt): New file_start_location field. Remove p_line, c_line fields since we no longer save lines. Remove elc, lineno, and current_jcf fields - no longer used. * parse.y: Updates for USE_MAPPED_LOCATION and new lexer. Don't use EXPR_WFL_ADD_COL since that isn't trivial with source_location and is probably not needed anymore anyway. Use new expr_add_Location function. (SET_EXPR_LOCATION_FROM_TOKEN): New convenience macro. (java_pop_parser_context): Minor cleanup. (java_parser_context_save_global, java_parser_context_restore_global, java_pop_parser_context): Save/restore input_location as a unit. (issue_warning_error_from_context): If USE_MAPPED_LOCATION take a source_location instead of a wfl context node. (check_class_interface_creation): input_filename is not addressable. (create_artificial_method): Calling java_parser_context_save_global and java_parser_context_restore_global is overkill. Instead, temporarily set input_location from class decl. (java_layout_seen_class_methods): Set input_location from method decl. (fix_constructors): Make more robust if no EXPR_WITH_FILE_LOCATION. (finish_loop_body): Likewise. * lex.c: Updates for USE_MAPPED_LOCATION. Use build_unknwon_wfl. (java_sprint_unicode): Take a character, not index in line. (java_sneak_uncode): Replaced by java_peek_unicode. (java_unget_unicode): No longer used. (java_allocate_new_line. java_store_unicode): Removed, since we no longer remember "lines". (java_new_lexer): Update for new data structures. (java_read_char): Move unget_value checking to java_read_unicode. (java_get_unicode, java_peek_unicode, java_next_unicode): New more efficient functions that are used directly when lexing. (java_read_unicode_collapsing_terminators): No longer needed. (java_parse_end_comment, java_parse_escape_sequence, do_java_lex): Re-organize to use java_peek_unicode to avoid java_unget_unicode. (java_parse_escape_sequence): Rewrite to be simpler / more efficient. (do_java_lex): Lots of movings around to avoid java_unget_unicode, combine switch branches, and test for common token kinds earlier. (java_lex_error): Rewrite. * jv-scan.c (expand_location): New function, copied from tree.c. (main): Set ctxp->filename instead of setting input_filename directly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88367 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h (JAVA_FILE_P, ZIP_FILE_P): Remove unused macros.bothner2004-09-303-70/+118
| | | | | | | | | | | | | | | | | | | | | * jcf-parse.c (java_parse_file): Don't set input_filename. Use IS_A_COMMAND_LINE_FILENAME_P to check for duplicate filenames. Create a list of TRANSLATION_UNIT_DECL. (current_file_list): Is now a TRANSLATION_UNIT_DECL chain. The reason is so we can set a DECL_SOURCE_LOCATION for each file. (java_parse_file): Don't set unused ZIP_FILE_P, JAVA_FILE_P.. Create line-map LC_ENTER/LC_LEAVE entries for archive itself. (file_start_location): New static. (set_source_filename): Avoid extra access to input_filename macro. Concatenate new name with class's package prefix. (set_source_filename, give_name_to_class): Update. (give_name_to_class): Set class's "line 0" input_location here. (parse_class_file): Set input_location as a unit. * jcf-parse.c (load_class): Sanity test if missing inner class file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88366 138bc75d-0d04-0410-961f-82ee72b054a4
* More cleanup for --enable-mapped-location.bothner2004-09-303-6/+80
| | | | | | | | | | | | | | | * class.c (push_class): If USE_MAPPED_LOCATION don't set input_location here. Instead do it in give_name_to_class. (build_class_ref): Set DECL_ARTIFICIAL, for the sake of dwarf2out. * expr.c (expand_byte_code): Call linemap_line_start. * expr.c (build_expr_wfl): If USE_MAPPED_LOCATION, change final parameters to a source_location. Don't need EXPR_WFL_FILENAME_NODE. (expr_add_location): New function, if USE_MAPPED_LOCATION. * class.c (maybe_layout_super_class): Adjust build_expr_wfl call to USE_MAPPED_LOCATION case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88365 138bc75d-0d04-0410-961f-82ee72b054a4
* * check-init.c (check_init): Handle USE_MAPPED_LOCATION case.bothner2004-09-306-2/+28
| | | | | | | | | | * decl.c (finish_method, java_add_stmt): Likewise. * java-gimplify.c (java-gimplify.c): Likewise. * jcf-write.c (generate_bytecode_insns): Likewise. * lang.c (java_post_options): Likewise - call linemap_add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88324 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h: Redefine some macros and add soem declarationbothner2004-09-304-5/+29
| | | | | | | | | | | to handle the USE_MAPPED_LOCATION case. * parse.h (EXPR_WFL_QUALIFICATION): Use operand 1, not 2. * java-tree.h (EXPR_WFL_FILENAME_NODE): Use operand 2, not 1. * java-tree.def (EXPR_WITH_FILE_LOCATION): Only need two operands in USE_MAPPED_LOCATION case, since EXPR_WFL_FILENAME_NODE is gone. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88323 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-29 Andrew Haley <aph@redhat.com>aph2004-09-293-3/+11
| | | | | | | | | | | | PR java/17007 * parse.y (patch_binop): Don't mess with the TREE_SIDE_EFFECTS of the result of TRUNC_MOD_EXPR. (patch_unaryop): Likewise for CONVERT_EXPR, which may throw. * decl.c (java_init_decl_processing): Mark soft_lookupinterfacemethod_node and soft_instanceof_node pure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88289 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/15710:tromey2004-09-282-0/+8
| | | | | | | | * class.c (add_miranda_methods): Load superinterface if not already loaded. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88243 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-28 Andrew Haley <aph@redhat.com>aph2004-09-282-6/+13
| | | | | | | | | PR java/17586 * jcf-parse.c (load_class): Don't try to read a class that we've already read. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88239 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-28 Andrew Haley <aph@redhat.com>aph2004-09-282-18/+6
| | | | | | | * jcf-parse.c (load_class): Back out previous broken patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88234 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-28 Andrew Haley <aph@redhat.com>aph2004-09-282-2/+25
| | | | | | | | | | PR java/17586 * jcf-parse.c (load_class): Don't try to read a class that we've already read. Check that we really did read the right class. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88233 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/17500:tromey2004-09-252-1/+10
| | | | | | | * parse.y (create_artificial_method): Use add_method_1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88108 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c, jcf-dump.c, parse-scan.y, parse.y: Fixkazu2004-09-256-8/+14
| | | | | | | | comment typos. * gcj.texi: Fix typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88099 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/15656:tromey2004-09-242-7/+21
| | | | | | | | | | * parse.y (class_instance_creation_expression): Set `$$' to NULL in error parts of rule. (unary_expression): Don't call error_if_numeric_overflow when $1 is NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88048 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/16789:tromey2004-09-243-4/+16
| | | | | | | | | | * parse.y (resolve_qualified_expression_name): Set CAN_COMPLETE_NORMALLY on first call when chaining static calls. * expr.c (force_evaluation_order): Check for empty argument list after stripping COMPOUND_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88045 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-23 Andrew Haley <aph@redhat.com>aph2004-09-242-1/+16
| | | | | | | | | PR java/16927: * parse.y (java_complete_lhs): Call patch_string() on Operand 1 of COND_EXPRs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88036 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/17329:tromey2004-09-232-1/+10
| | | | | | | | * java-gimplify.c (java_gimplify_expr) <SAVE_EXPR>: Ignore case where operand is null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87961 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/17380:tromey2004-09-232-2/+8
| | | | | | | | * parse.y (not_accessible_p): Allow access to protected members even when class is not static. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87959 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/kcook2004-09-222-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND. * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O. Create build and doc directories along with the language directories. Don't create doc directory separately. * configure: Regenerate. * Makefile.in: Create all object and executables files built with the build compiler in a build/ directory. (genobjnames): Add missing build objects. (STAGESTUFF): Don't stage the gen* programs. (ggc-none.o): Define dependencies for the target compiler. (build-print-rtl.o): Rename to build/print-rtl.o. (build-errors.o): Rename to build/errors.o. (build-varray.o): Rename to build/varray.o. (maintainerclean): Delete the contents of the build directory. ($(genobjs): %.o): Explicitly use -o. (build/insn-conditions.o): Delete specfic rule to use generic rule. (build/gengtype-lex.o): Likewise. (build/gengtype-yacc.o): Likewise. (build/gcov-iov.o): Likewise. gcc/java 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in: Revert the gcc-none.o change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87854 138bc75d-0d04-0410-961f-82ee72b054a4
* * vec.h (VEC_space): Return true if there _is_ space.nathan2004-09-222-1/+6
| | | | | | | | | | (VEC_reserve): Adjust. * java/parse.y (patch_anonymous_class): VEC_space returns true if there is space. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87852 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix bootstrap.austern2004-09-212-1/+7
| | | | | | | | * gjavah.c (free_method_name_list): Fix function definition so it's a proper C prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87815 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/17575:tromey2004-09-212-0/+23
| | | | | | | | * gjavah.c (free_method_name_list): New method. (main): Call it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87812 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud