aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
1999-12-06[multiple changes]Alexandre Petit-Bianco2-5/+20
Tue Nov 30 12:36:15 1999 Anthony Green <green@cygnus.com> * verify.c (verify_jvm_instructions): Create new return label chain if non existant (don't rely on the verified state of the jsr target.) Tue Nov 23 17:29:40 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * verify.c (merge_type_state): Non verified subroutines being considered more than once to trigger passive type merge. From-SVN: r30811
1999-12-06jcf-parse.c (saw_java_source): Global variable removed.Alexandre Petit-Bianco2-27/+21
Wed Nov 24 17:33:26 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * jcf-parse.c (saw_java_source): Global variable removed. (read_class): Don't use `saw_java_source'. Added extra braces. (yyparse): Code setting `saw_java_source' removed. From-SVN: r30809
1999-12-06except.c (expand_end_java_handler): Call expand_resume_after_catch and ↵Alexandre Petit-Bianco2-1/+8
end_catch_handler. Wed Dec 1 04:25:06 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * except.c (expand_end_java_handler): Call expand_resume_after_catch and end_catch_handler. From-SVN: r30807
1999-12-06jcf-write.c (generate_byecode_insns): Fixed indentation for COMPOUND_EXPR ↵Alexandre Petit-Bianco4-7/+16
and FIX_TRUNC_EXPR cases. Tue Nov 30 12:28:34 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * jcf-write.c (generate_byecode_insns): Fixed indentation for COMPOUND_EXPR and FIX_TRUNC_EXPR cases. * parse.y (patch_assignment): Removed bogus final class test on lhs when checking on whether to emit an ArrayStoreException runtime check. * expr.c (expand_java_arraystore): Likewise. From-SVN: r30806
1999-12-01Undo the last change I've checked in by accident.Jan Hubicka1-230/+162
From-SVN: r30742
1999-12-01i386.c (ix86_expand_move): Never add clobbers to move patterns.Jan Hubicka1-162/+230
* i386.c (ix86_expand_move): Never add clobbers to move patterns. * i386.md (movsi_xor): New. (movsi_or): New. (movsi_1, movhi_1, movqi_1): Remove. (movsi_2): Rename to movsi_1. (movhi_2): Rename to movhi_1. (movqi_2): Rename to movqi_1. (movdi_1): Remove; remove splitter. (movdi_2): Rename to movdi_1. (divmodsi4 splitter): Do not emit clobbers for move patterns. (long move peep2): Do not create QI or HI mode mov0s (mov -1,reg -> or peep2s): Enable again, rewrite to single peephole. From-SVN: r30741
1999-12-01re GNATS gcj/97 (Internal compiler error)Alexandre Petit-Bianco3-169/+185
Thu Nov 11 01:57:14 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (lookup_method_invoke): Use lang_printable_name to reliably build the type name during error report. Fixes PR gcj/97. From-SVN: r30739
1999-11-29parse.y (catch_clause_parameter:): Still set `$$' to NULL_TREE in case of error.Alexandre Petit-Bianco2-8/+16
Tue Nov 23 10:55:18 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (catch_clause_parameter:): Still set `$$' to NULL_TREE in case of error. Error message tuned. This fixes a catch clause error handling reported on the java-discuss mailing list: http://sourceware.cygnus.com/ml/java-discuss/1999-q4/msg00358.html From-SVN: r30710
1999-11-29hu Nov 4 16:27:01 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>Alexandre Petit-Bianco2-1/+16
* parse.y (resolve_qualified_expression_name): Handle PLUS_EXPR. (qualify_ambiguous_name): Likewise. (This patch fixes the gcj PR #55.) From-SVN: r30707
1999-11-25* except.c (emit_handlers): Zero catch_clauses after emitting them.Mark Mitchell2-0/+5
From-SVN: r30657
1999-11-21constants.c (find_methodref_index): Unwrap method names before inserting ↵Anthony Green6-9/+201
them in the constant pool. * constants.c (find_methodref_index): Unwrap method names before inserting them in the constant pool. * jcf-parse.c (jcf_parse): Display `interface' when appropriate. * class.c (assume_compiled_node): New typedef. (assume_compiled_tree): New static data. (find_assume_compiled_node): New function. (add_assume_compiled): New function. (assume_compiled): New function. * class.c (make_class_data): Use assume_compiled. (is_compiled_class): Use assume_compiled. * java-tree.h (add_assume_compiled): Declare. * lang.c (lang_decode_option): Parse new options. From-SVN: r30608
1999-11-18class.c (layout_class): Always convert TYPE_SIZE_UNIT to int_type_node...Alexandre Petit-Bianco2-0/+9
Wed Nov 17 21:09:28 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (layout_class): Always convert TYPE_SIZE_UNIT to int_type_node: that's what `_Jv_AllocObject' expects. From-SVN: r30581
1999-11-17typeck.c: (lookup_java_method): search all inherited interfaces when...Godmar Back2-5/+56
Wed Nov 3 15:20:02 MST 1999 Godmar Back <gback@cs.utah.edu> * typeck.c: (lookup_java_method): search all inherited interfaces when looking up interface method. From-SVN: r30566
1999-11-10re GNATS gcj/84 (path to classes.zip is compiled in to gcj at build time)Tom Tromey2-1/+60
* jcf-path.c: Include <sys/stat.h>. (jcf_path_init): Search for libjava.zip. Fixes PR gcj/84. (DIR_UP): New macro. From-SVN: r30465
1999-11-09parse.y (source_end_java_method): Resume permanent allocation, reversing Apr ↵Alexandre Petit-Bianco3-2/+11
27 1998 patch. Tue Nov 9 12:12:38 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (source_end_java_method): Resume permanent allocation, reversing Apr 27 1998 patch. (patch_string_cst): Pop obstacks after having pushed the permanent ones. From-SVN: r30462
1999-11-05re GNATS gcj/85 (Compiler optimizes away private methods when native methods ↵Tom Tromey2-2/+22
might access them) * class.c (finish_class): Emit inlined methods if any native methods exist in the class. Fixes PR gcj/85. From-SVN: r30420
1999-11-01parse.y (method_header:): Issue error message for rule `type error'.Alexandre Petit-Bianco3-1492/+1530
Mon Nov 1 23:42:00 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (method_header:): Issue error message for rule `type error'. (synchronized:): Error report when not using synchronized. From-SVN: r30343
1999-11-01parse.y (resolve_qualified_expression_name): Prevent `this' from being used ↵Alexandre Petit-Bianco1-2/+4
before the superclass constructor has been called. Mon Nov 1 01:32:48 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (resolve_qualified_expression_name): Prevent `this' from being used before the superclass constructor has been called. (complete_function_arguments): Use CALL_EXPLICIT_CONSTRUCTOR_P instead of `CALL_THIS_CONSTRUCTOR_P'. (Fixed the incomplete last ChangeLog entry.) From-SVN: r30318
1999-11-01re GNATS gcj/48 (Compiler fails to catch constructor problem)Alexandre Petit-Bianco3-8/+27
Mon Nov 1 01:32:48 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (resolve_qualified_expression_name): Prevent `this' from being before the superclass constructor has been called. (This fixes the net PR #48: http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00106.html) From-SVN: r30317
1999-10-30* check-init.c: Fix typo in comment.Todd T. Fries2-1/+5
From-SVN: r30281
1999-10-29class.c (add_method_1): Set DECL_INLINE to 1 for private, static and final ↵Alexandre Petit-Bianco1-0/+5
method. Fri Oct 29 14:35:18 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (add_method_1): Set DECL_INLINE to 1 for private, static and final method. From-SVN: r30268
1999-10-29parse.y (expression_statement:): Call function to report improper invocation ↵Alexandre Petit-Bianco4-443/+468
of a constructor. Fri Oct 29 14:23:32 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (expression_statement:): Call function to report improper invocation of a constructor. (parse_ctor_invocation_error): New function. From-SVN: r30267
1999-10-26tree.h (BLOCK_TYPE_TAGS): Remove.Mark Mitchell2-2/+5
* tree.h (BLOCK_TYPE_TAGS): Remove. (BLOCK_END_NOTE): Likewise. (BLOCK_LIVE_RANGE_FLAG): Likewise. (BLOCK_LIVE_RANGE_START): Likewise. (BLOCK_LIVE_RANGE_END): Likewise. (tree_block): Remove live_range_flag, live_range_var_flag, and type_tags. Remove end_note, live_range_start, and live_range_end. (remember_end_note): Remove prototype. * tree.c (build_block): Don't set BLOCK_TYPE_TAGS. * c-decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call remember_end_note. * ggc-common.c (ggc_mark_tree_children): Don't mark BLOCK_TYPE_TAGS or BLOCK_END_NOTE. * integrate.c (adjust_copied_decl_tree): Remove. * print-tree.c (print_node): Don't print BLOCK_TYPE_TAGS. * stmt.c (last_block_end_note): Remove. (init_stmt): Don't add a GC root for it. (expand_fixup): Don't set it. (remember_end_note): Remove. (expand_end_bindings): Don't set last_block_end_note. * ch-tree.h (remember_end_note): Remove prototype. * decl.c (poplevel): Don't call remember_end_note. * decl.c (poplevel): Don't set BLOCK_TYPE_TAGS. Don't call remember_end_note. * com.c (poplevel): Don't call remember_end_note. * decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call remember_end_note. From-SVN: r30188
1999-10-22jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set in generated ↵Tom Tromey2-1/+8
`main'. * jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set in generated `main'. From-SVN: r30132
1999-10-21re GNATS gcj/56 (gcj segfaults in jc1 on OK java file)Alexandre Petit-Bianco3-10/+9
Thu Oct 21 01:27:31 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (resolve_qualified_expression_name): Handle MODIFY_EXPR. (qualify_ambiguous_name): Likewise. This fixes the net PR #56 (http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00131.html) From-SVN: r30127
1999-10-21re GNATS gcj/37 (gcj fails to compile "jBYTEmark" from source code when ↵Alexandre Petit-Bianco3-8/+42
optimization is used) Wed Oct 20 01:41:47 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (java_complete_tree): fold_constant_for_init to work on permanent_obstack. (java_complete_lhs): Likewise. (array_constructor_check_entry): Complete an initializer element on permanent_obstack. This patch fixes the net PR #37 (http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00043.html) From-SVN: r30126
1999-10-19jcf-parse.c (parse_source_file): Call jcf_dependency_add_file.Tom Tromey2-0/+7
* jcf-parse.c (parse_source_file): Call jcf_dependency_add_file. From Mike Moreton <mike@pillim.demon.co.uk>. From-SVN: r30093
1999-10-16java-tree.h (flag_bounds_check): Remove extern decl.Greg McGary3-11/+8
* java-tree.h (flag_bounds_check): Remove extern decl. * lang.c (flag_bounds_check): Remove global variable. (lang_f_options): Remove "bounds-check" entry. (lang_init_options): Default flag_bounds_check to "on". From-SVN: r30036
1999-10-15jvgenmain.c (usage): New function.Tom Tromey3-10/+63
* jvgenmain.c (usage): New function. (main): Use it. Also, handle `-D' options. * jvspec.c (lang_specific_driver): Recognize -D. (jvgenmain_spec): Added `%{D*}' to jvgenmain invocation. From-SVN: r30019
1999-10-14* jvspec.c (jvgenmain_spec): Use `%umain', not just `%u'.Tom Tromey2-4/+8
From-SVN: r29985
1999-10-14jcf-dump.c (print_constant, [...]): Don't call a variadic function with a ↵Kaveh R. Ghazi9-79/+138
non-literal format string. * jcf-dump.c (print_constant, disassemble_method): Don't call a variadic function with a non-literal format string. * parse-scan.y (report_main_declaration): Likewise. * parse.h (ERROR_CAST_NEEDED_TO_INTEGRAL): Likewise. * parse.y (read_import_dir, patch_assignment, patch_binop, patch_array_ref): Likewise. * typeck.c (build_java_array_type): Likewise. * verify.c (verify_jvm_instructions): Likewise. From-SVN: r29981
1999-10-13Fix thinko in last change.Jeff Law1-1/+0
From-SVN: r29955
1999-10-13(Fixing malformed ChangeLog entries...)Alexandre Petit-Bianco1-2/+2
From-SVN: r29944
1999-10-12(RELOCATION_VALUE_1): Fixed integer value from 0 to 1.Alexandre Petit-Bianco2-1/+5
Tue Oct 12 22:28:10 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * (RELOCATION_VALUE_1): Fixed integer value from 0 to 1. From-SVN: r29933
1999-10-12jcf-write.c: (RELOCATION_VALUE_0): New macro.Alexandre Petit-Bianco2-18/+53
Tue Sep 14 16:24:19 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * jcf-write.c: (RELOCATION_VALUE_0): New macro. (RELOCATION_VALUE_1): Likewise. (emit_iinc, emit_reloc, push_constant1, push_constant2, push_in_const, push_long_const): Prototyped. (push_constant1): Argument `index' is of type HOST_WIDE_INT. (push_constant2): Likewise. (push_int_const): Cast find_constant1's integer arguments to `jword'. (find_constant_wide): Cast find_constant2's integer arguments to `jword'. (find_constant_index): Cast find_constant2's and find_constant2's integer arguments to `jword'. (emit_pop): Argument `value' is of type HOST_WIDE_INT. (emit_switch_reloc): Use RELOCATION_VALUE_0. (emit_if): Use RELOCATION_VALUE_1. (emit_goto): Likewise. (emit_jsr): Likewise. (generate_bytecode_insns): Use RELOCATION_VALUE_0. Cast second argument to push_long_const to HOST_WIDE_INT. (This is a forgotten patch.) From-SVN: r29932
1999-10-07During class file generation...Anthony Green2-6/+21
During class file generation, generate_classfile occasionally writes out a bunch of data and then skips backwards to fill in blanks. When configured with --enable-checking, this patching up will often trip the checking code. This change introduces UNSAFE_PUTx macros which never use CHECK_PUT. These should only be used in cases we know CHECK_PUT will fail. From-SVN: r29854
1999-10-04re GNATS gcj/59 (Problem with jv-scan --print-main)Tom Tromey4-5/+15
* lex.h (BUILD_OPERATOR2): Return ASSIGN_ANY_TK in `lite' case as well. Fixes Java PR gcj/59. * parse-scan.y (yyerror): Report errors. From-SVN: r29811
1999-09-24Changed credit to the right person.Glenn Chambers1-2/+2
From-SVN: r29658
1999-09-24decl.c (insert_block): Removed unconditional `abort'.Glenn Chambers2-1/+4
Fri Sep 24 12:23:05 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * decl.c (insert_block): Removed unconditional `abort'. From-SVN: r29657
1999-09-24Allow to distinguish between three classes of builtin functionsBernd Schmidt2-30/+35
From-SVN: r29653
1999-09-23jvspec.c (lang_specific_driver): Don't read spec file if -fsyntax-only given.Tom Tromey2-0/+6
* jvspec.c (lang_specific_driver): Don't read spec file if -fsyntax-only given. From-SVN: r29630
1999-09-22* lang-specs.h: Added `%(jc1)' to the jc1 spec.Tom Tromey2-1/+3
From-SVN: r29600
1999-09-22javaop.h (WORD_TO_FLOAT): Use `inline' unconditionally.Tom Tromey2-12/+9
* javaop.h (WORD_TO_FLOAT): Use `inline' unconditionally. (WORDS_TO_LONG): Likewise. (WORDS_TO_DOUBLE): Likewise. From-SVN: r29593
1999-09-21re GNATS gcj/46 (Static inializers compiled incorrectly)Alexandre Petit-Bianco3-4/+9
Thu Sep 16 15:42:39 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (java_method_add_stmt): Test against GET_CURRENT_BLOCK instead of fndecl. (This patch fixes the net Java PR #46: http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00092.html) From-SVN: r29550
1999-09-20Makefile.in (parse.o): Depend on $(JAVA_TREE_H).Andreas Schwab2-1/+5
1999-09-15 Andreas Schwab <schwab@suse.de> * Makefile.in (parse.o): Depend on $(JAVA_TREE_H). From-SVN: r29525
1999-09-20Add comment saying that lang_decode_options should not complain aboutNick Clifton2-0/+5
unrecognised options. From-SVN: r29522
1999-09-16gjavah.c (get_field_name, [...]): Use xmalloc, not malloc.Kaveh R. Ghazi16-229/+196
* gjavah.c (get_field_name, print_method_info, print_include, add_namelet): Use xmalloc, not malloc. * jcf-depend.c (add_entry): Likewise. Use xstrdup, not strdup. (munge): Use xrealloc, not realloc, trust xrealloc to handle a NULL pointer. * jcf-io.c (open_in_zip, find_class): Use xstrdup, not strdup. * jcf-parse.c (jcf_out_of_synch, yyparse): Likewise. * jcf-path.c (add_entry): Likewise. * jcf.h (ALLOC, REALLOC): Use xmalloc/xrealloc, not malloc/realloc. * jv-scan.c (xmalloc): Remove definition. * jvgenmain.c (xmalloc): Likewise. * jvspec.c (lang_specific_driver): Use xcalloc, not xmalloc/bzero. * lex.c (java_store_unicode): Use xrealloc, not realloc. * parse-scan.y: Use concat, not of xmalloc/assign/strcpy. Use concat, not xmalloc/sprintf. (java_push_parser_context): Use xcalloc, not xmalloc/bzero. (xstrdup): Remove definition. * parse.y (duplicate_declaration_error_p, constructor_circularity_msg, verify_constructor_circularity, check_abstract_method_definitions, java_check_regular_methods, java_check_abstract_methods, patch_method_invocation, check_for_static_method_reference, patch_assignment, patch_binop, patch_cast, array_constructor_check_entry, patch_return, patch_conditional_expr): Use xstrdup, not strdup. * zextract.c (ALLOC): Use xmalloc, not malloc. From-SVN: r29457
1999-09-13Makefile.in (gcc.o, [...]): Depend on gcc.h.Kaveh R. Ghazi3-26/+31
* Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h. * gcc.h: New file. (lang_specific_driver): Don't take a function pointer parameter. All callers changed. * gcc.c: Include gcc.h. (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link, lang_specific_extra_outfiles, fatal): Don't declare. (multilib_defaults_raw): Constify. (read_specs): Call memset, rather than bzero. (main): Call return, not exit. (lookup_compiler): Call memcpy, not bcopy. (fatal): Make extern. * cppspec.c: Include gcc.h. (lang_specific_driver): Initialize variable `quote'. Constify a char*. All calls to the function pointer parameter now explicitly call `fatal'. * gccspec.c (lang_specific_driver): Include gcc.h. cp: * Make-lang.in (g++spec.o): Depend on system.h and gcc.h. * g++spec.c: Include gcc.h. (lang_specific_driver): Constify a char*. Call xcalloc, not xmalloc/bzero. All calls to the function pointer parameter now explicitly call `fatal'. f: * Make-lang.in (g77spec.o): Depend on system.h and gcc.h. * g77spec.c: Include gcc.h. (g77_xargv): Constify. (g77_fn): Add parameter prototypes. (lookup_option, append_arg): Add static prototypes. (g77_newargv): Constify. (lookup_option, append_arg, lang_specific_driver): Constify a char*. (lang_specific_driver): All calls to the function pointer parameter now explicitly call `fatal'. java: * Make-lang.in (jvspec.o): Depend on system.h and gcc.h. * jvspec.c: Include gcc.h. Don't include gansidecl.h. (do_spec, lang_specific_pre_link, lang_specific_driver, input_filename, input_filename_length): Don't declare. (main_class_name, jvgenmain_spec, lang_specific_driver): Constify a char*. (lang_specific_driver): All calls to the function pointer parameter now explicitly call `fatal'. From-SVN: r29367
1999-09-11re GNATS gcj/18 (Internal error: segfault on invalid cast)Alexandre Petit-Bianco3-2/+11
Sat Sep 11 16:46:44 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (find_applicable_accessible_methods_list): Search abstract classes as interfaces. (Fix to Java PR #18: http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00015.html) From-SVN: r29352
1999-09-11class.c (finish_class): We're now outside a valid method declaration.Alexandre Petit-Bianco2-0/+6
Thu Sep 9 17:33:28 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (finish_class): We're now outside a valid method declaration. Tell the rest of gcc so. From-SVN: r29347