summaryrefslogtreecommitdiffstats
path: root/gcc/java
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.in (ifcvt.o): Depend on toplev.h.ghazi2001-04-113-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-semantics.c: Include expr.h. * ifcvt.c: Include toplev.h. * expr.h (rtx_equal_p): Delete prototype. * rtl.h (exact_log2_wide, floor_log2_wide, permalloc, protect_from_queue, gen_jump, gen_beq, gen_bge, gen_ble, eliminate_constant_term, expand_complex_abs, find_single_use, make_tree, init_expr_once, init_optabs, supports_one_only): Likewise. * tree.h (exact_log2_wide, floor_log2_wide, expand_null_return, rest_of_type_compilation, emit_queue, do_pending_stack_adjust, expand_assignment, store_expr, emit_line_note_after, emit_line_note_force, split_specs_attrs, label_rtx): Likewise. * toplev.h (exact_log2_wide, floor_log2_wide): Add prototype. cp: * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H). * semantics.c: Include expr.h. java: * Make-lang.in (java/boehm.o): Depend on toplev.h. * boehm.c: Include toplev.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41256 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-06 Tom Tromey <tromey@redhat.com>tromey2001-04-072-3/+22
| | | | | | | | | | | | Alexandre Petit-Bianco <apbianco@redhat.com> Fix for PR gcj/1404 and PR gcj/2332: * parse.y (build_array_from_name): If we use the type_wfl then accumulate dimensions from the original type as well. (build_unresolved_array_type): Don't modify TYPE_OR_WFL in place. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41178 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (analyze_clinit_body): Return true if the second operandtromey2001-04-062-4/+8
| | | | | | | of a METHOD_EXPR is nonzero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41164 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from buildtromey2001-04-062-6/+11
| | | | | | | | directory. ($(srcdir)/java/parse.c): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41162 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-05 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-04-052-1/+11
| | | | | | | | | | | * gcj.texi: Use `which-gcj' instead of `which-g77.' (version-gcc): Initialized. (which-gcj): Likewise. (http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00333.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41133 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-04 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-04-053-14/+53
| | | | | | | | | | | | | | | | * java-tree.h (struct lang_decl): New macro `DECL_FIXED_CONSTRUCTOR_P.' New field `fixed_ctor.' * parse.y (build_instance_initializer): New function. (add_instance_initializer): Use it. (java_fix_constructors): Set `current_class' before fix pass. (fix_constructors): Just return if already fixed. Move `super()' invokation ahead. Use `build_instance_initializer.' Fixes PR java/1315. (http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00343.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41129 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-04 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-04-052-2/+9
| | | | | | | | | | | | * parse.y (resolve_qualified_expression_name): Pass field's DECL_CONTEXT to `not_accessible_p.' (not_accessible_p): Changed parameters order in `inherits_from_p' invokation. (http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00326.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41126 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-27 Andrew Haley <aph@cambridge.redhat.com>aph2001-04-052-0/+5
| | | | | | | * lang-options.h: Add flag_check_references. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41124 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h (CONSTANT_VALUE_P): New macro.bothner2001-04-044-29/+57
| | | | | | | | | | | | | | * jcf-write.c (generate_classfile): Use CONSTANT_VALUE_P. * parse.y (maybe_build_class_init_for_field): New static function. (resolve_expression_name, resolve_field_access): Use maybe_build_class_init_for_field instead of build_class_init This does not do the init if the field is compile-time-constant. (resolve_field_access): Simplify. * parse.y (fold_constant_for_init): Merge test into switch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41094 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-30 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-04-042-17/+35
| | | | | | | | | | | | | | | | | | | * parse-scan.y (array_type:): Rewritten. (type_declaration:): `empty_statement' replaces `SC_TK.' (class_member_declaration:): `empty statement' added. (method_body:): Simplified. (static_initializer:): Likewise. (primary_no_new_array:): Use `type_literals.' (type_literals:): New rule. (dims:): Set and update `bracket_count.' Fixes PR java/1074. Fixes PR java/2412. (http://gcc.gnu.org/ml/gcc-bugs/2001-03/msg00835.html, http://gcc.gnu.org/ml/gcc-bugs/2000-12/msg00384.html, http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00258.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41089 138bc75d-0d04-0410-961f-82ee72b054a4
* include:zack2001-04-044-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | * ansidecl.h: All logic from gcc/gansidecl.h moved here. gcc: * gansidecl.h: Delete file. * configure.in: Change all refs to gansidecl.h to use ansidecl.h. Adjust *_file_list so they know where ansidecl.h lives. * configure: Regenerate. * Makefile.in (intl.o): Don't depend on gansidecl.h. * defaults.h: s/gansidecl.h/ansidecl.h/ in comment. * ggc.h, config/fr30/fr30.h, config/mcore/mcore.c: Don't include gansidecl.h. * intl.c, main.c, version.c, fixinc/fixlib.h, fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not gansidecl.h. gcc/java: * Make-lang.in (buffer.o, check-init.o, class.o): Don't depend on gansidecl.h. * buffer.c, jvgenmain.c: Don't include gansidecl.h. libiberty: * make-temp-file.c (try): Inline. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41069 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-28 Hans Boehm <boehm@acm.org>apbianco2001-04-032-7/+14
| | | | | | | | | | | * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Set to use `build_int_2.' (get_boehm_type_descriptor): Set type on returned value to be a pointer length integer. (http://gcc.gnu.org/ml/java/2001-03/msg00444.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41059 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (pop_type_0): Save the result of the firstzack2001-04-032-3/+15
| | | | | | | | lang_printable_name call in a scratch buffer, so it won't be clobbered by the second call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41032 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (pop_type_0): Call `concat' rather than building theghazi2001-03-283-25/+24
| | | | | | | | | | | string manually. (pop_type): Add format specifier in call to `error'. * parse.y (patch_method_invocation): Avoid casting away const-ness. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40940 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-21 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-03-282-2/+9
| | | | | | | | | | | * parse.y (qualify_ambiguous_name): Broaden `length' recognition. Help MODIFY_EXPR be resolved as expression names. Fixes PR java/2066. Fixes PR java/2400. (http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01935.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40938 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-28 Jeffrey Oldham <oldham@codesourcery.com>oldham2001-03-282-0/+5
| | | | | | | * jvgenmain.c (do_mangle_classname): End string constant with '\0'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40936 138bc75d-0d04-0410-961f-82ee72b054a4
* IA-64 ABI Exception Handling.rth2001-03-2810-89/+82
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40924 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h (throw_node): Define as a single member ofrth2001-03-287-28/+32
| | | | | | | | | | | | | | | java_global_trees instead of a separate array. (JTI_THROW_NODE): New. * decl.c (throw_node): Don't declare. (init_decl_processing): Init a scalar throw_node. Don't register it for gc. * check-init.c (check_init): Reference scalar throw_node. * expr.c (build_java_athrow): Likewise. * jcf-write.c (generate_bytecode_insns): Likewise. * parse.h (BUILD_THROW): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40922 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c (end_java_method): Do not save and restorerth2001-03-284-24/+12
| | | | | | | | | | | | flag_non_call_exceptions. * parse.y (source_end_java_method): Likewise. * lang.c (flag_exceptions): Don't declare. (java_init_options): Set flag_non_call_exceptions. Set flag_exceptions here ... (java_init): ... not here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40921 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove flag_new_exceptions.rth2001-03-282-2/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40908 138bc75d-0d04-0410-961f-82ee72b054a4
* Make -fsjlj-exceptions a configure option.rth2001-03-283-2/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40905 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (source_end_java_method): Likewise.rth2001-03-282-4/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40904 138bc75d-0d04-0410-961f-82ee72b054a4
* * bb-reorder.c, dwarf2out.c, except.c, except.h, flow.c,rth2001-03-282-4/+9
| | | | | | | | | | | jump.c, toplev.c: Rename asynchronous_exceptions to flag_non_call_exceptions. * java/decl.c (end_java_method): Rename asynchronous_exceptions to flag_non_call_exceptions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40902 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (SYSTEM_H): Define.ghazi2001-03-272-27/+31
| | | | | | | | | | | | | | | | | | Depend on $(SYSTEM_H), not system.h. * objc/Make-lang.in: Depend on $(SYSTEM_H), not system.h. cp: * Make-lang.in: Depend on $(SYSTEM_H), not system.h. f: * Make-lang.in: Depend on $(SYSTEM_H), not system.h. java: * Make-lang.in: Depend on $(SYSTEM_H), not system.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40883 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.h (DECL_NUM_STMTS): New macro.mmitchel2001-03-272-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-decl.c (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE. (pushdecl): Likewise. * c-semantics.c (add_stmt): Update DECL_NUM_STMTS. * integrate.c (expand_inline_function): Don't check DECL_FRAME_SIZE. * print-tree.c (print_node): Don't print it. * toplev.c (rest_of_compilation): Don't try to inline when flag_no_inline is on. * tree.h (DECL_FRAME_SIZE): Remove. (tree_decl): Adjust accordingly. * Makefile.in (optimize.o): Depend on params.h. (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE. (init_decl_processing): Set flag_no_inline when doing inlining-on-trees. * optimize.c: Include params.h. (struct inline_data): Improve documentation of FNS. Add FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P. (INSNS_PER_STMT): New macro. (remap_block): Use CLONING_P. (inlinable_function_p): Don't inline big functions. (expand_call_inline): Keep track of how much inlining we've done. (optimize_function): Set FIRST_INLINED_FN. (maybe_clone_body): Set CLONING_P. * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in tree nodes. (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling rest_of_compilation. Clear DECL_RTL for local variables afterwards. (clear_decl_rtl): New function. * com.c (duplicate_decls): Don't copy DECL_FRAME_SIZE. * parse.h (DECL_END_SOURCE_LINE): Don't rely on DECL_FRAME_SIZE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40859 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-26 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-03-262-1/+17
| | | | | | | | | | * parse.y (find_as_inner_class): Follow current package indications not to mistakingly load an unrelated class. (http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01712.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40851 138bc75d-0d04-0410-961f-82ee72b054a4
* * constants.c (PUTN): Use memcpy, not bcopy.ghazi2001-03-264-7/+13
| | | | | | | | | * lex.c (java_read_char): Use memmove, not bcopy. * parse.y (java_parser_context_resume): Use memcpy, not bcopy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40836 138bc75d-0d04-0410-961f-82ee72b054a4
* ebothner2001-03-245-46/+61
| | | | | | | | | | | | | | | | | | | | * verify.c (verify_jvm_instructions): Replace 3 pop_type by POP_TYPE macro for better error pin-pointing. * java-tree.h: Fix typo in comment. * jcf-write.c (generate_bytecode_insns): Changes to TRY_FINALLY_EXPR. Don't include jsr/goto in exception range. Check if start and end of exception range are the same (also TRY_EXPR). Don't emit jsr after try_block if CAN_COMPLETE_NORMALLY is false. However, do emit the following goto even if try_block is empty. Defer freeing exception_decl until after the finalizer, to make sure the local isn't reused in the finalizer. Fixes PR java/1208. * parse.y (java_complete_lhs): If the try-clause is empty, just return the finally-clause and vice versa. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40801 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-22 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-03-239-14/+106
| | | | | | | | | | | | | | | | | | | | | | | | | * gcj.texi (Input Options): documented the check for attribute `gnu.gcc.gccj-compiled' and the `-fforce-classes-archive-check' flag. * java-tree.h (flag_force_classes_archive_check): Declared extern. * jcf-parse.c (HANDLE_GCJCOMPILED_ATTRIBUTE): New macro. (jcf_parse): Check for the right classes archive if necessary. * jcf-reader.c (get_attribute): Define `MATCH_ATTRIBUTE' and use it. (jcf_parse_fields): Fixed indentation. * jcf-write.c (append_gcj_attribute): New function. (generate_classfile): Compute the attribute count, invoke `append_gcj_attribute'. * jcf.h (typedef struct JCF): `seen_in_zip' and `java_source' turned into bit fields. New bit field `right_zip.' (JCF_ZERO): Set `right_zip' to zero. * lang-options.h (-fforce-classes-archive-check): Added flag. * lang.c (flag_force_classes_archive_check): New flag. (lang_f_options): New entry `force-classes-archive-check.' Fixes PR java/1213. (http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01662.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40788 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-02-07 Andrew Haley <aph@redhat.com>aph2001-03-232-25/+21
| | | | | | | | | | | | | | | | | | | | | | | * gcj.texi (Configure-time Options): Add -fcheck-references. * expr.c (build_java_indirect_ref): New function. (java_check_reference): New function. (build_java_array_length_access): Use build_java_indirect_ref to check for null references. (build_java_arrayaccess): Likewise. (build_get_class): Likewise. (build_field_ref): Likewise. (invoke_build_dtable): Likewise. (build_invokeinterface): Likewise. * lang.c (lang_f_options): Add flag_check_references. * jvspec.c (jvgenmain_spec): Add flag_check_references. * java-tree.h (flag_check_references): New variable. * lang.c (flag_check_references): Likewise. * parse.y (patch_invoke): Use java_check_reference. (patch_assignment): Allow for extra nesting in _Jv_CheckArrayStore. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40782 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-02-07 Andrew Haley <aph@redhat.com>aph2001-03-236-52/+86
| | | | | | | | | | | | | | | | | | | * gcj.texi (Configure-time Options): Add -fcheck-references. * expr.c (build_java_indirect_ref): New function. (build_java_array_length_access): Use build_java_indirect_ref to check for null references. (build_java_arrayaccess): Likewise. (build_get_class): Likewise. (build_field_ref): Likewise. (invoke_build_dtable): Likewise. (build_invokeinterface): Likewise. * lang.c (lang_f_options): Add flag_check_references. * jvspec.c (jvgenmain_spec): Add flag_check_references. * java-tree.h (flag_check_references): New variable. * lang.c (flag_check_references): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40780 138bc75d-0d04-0410-961f-82ee72b054a4
* * gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c.bryce2001-03-233-8/+159
| | | | | | | * lex.c (cxx_keywords): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40773 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>bryce2001-03-232-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | * extend.texi: Document the "java_interface" attribute. java/: 2001-03-21 Bryce McKinlay <bryce@albatross.co.nz> * gjavah.c (process_file): Mark interface definitions with "__attribute__ ((java_interface))". cp/: 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz> Add support for Java interface method calls. * cp-tree.h (struct lang_type): Add java_interface flag. (TYPE_JAVA_INTERFACE): New macro. * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute by setting TYPE_JAVA_INTERFACE. * call.c (java_iface_lookup_fn): New static. (build_over_call): If calling a method declared in a TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the expression which resolves the function address. (build_java_interface_fn_ref): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40769 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-21 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-03-213-2/+13
| | | | | | | | | | | | * class.c (layout_class): Fixed push_super_field's second argument. Fixes PR java/2333. (jdep_resolve_class): Reset TYPE_SIZE if `error_mark_node', it's too early to lay innerclasses out. (http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01582.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40719 138bc75d-0d04-0410-961f-82ee72b054a4
* * lex.c (java_read_unicode): Only accept leading `u's.tromey2001-03-212-5/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40702 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-parse.c (read_class): Initialize `class'.tromey2001-03-202-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40678 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>tromey2001-03-202-1/+4
| | | | | | | * jcf_parse.c (jcf_parse): Eliminate unused variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40676 138bc75d-0d04-0410-961f-82ee72b054a4
* Compute DECL_ASSEMBLER_NAME lazily.mmitchel2001-03-193-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tree.h (DECL_ASSEMBLER_NAME): Compute it lazily. (DECL_ASSEMBLER_NAME_SET_P): New macro. (SET_DECL_ASSEMBLER_NAME): Likewise. (COPY_DECL_ASSEMBLER_NAME): Likewise. (set_decl_assembler_name): Declare. (lang_set_decl_assembler_name): Likewise. * tree.c (lang_set_decl_assembler_name): New variab.e (set_decl_assembler_name): New function. (init_obstacks): Set lang_set_decl_assembler_name. (build_decl): Don't set DECL_ASSEMBLER_NAME. * c-decl.c (duplicate_decls): Use SET_DECL_ASSEMBLER_NAME, COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME where it's not necessary. (builtin_function): Likewise. (finish_decl): Likewise. * dbxout.c (dbxout_type_methods): Likewise. * ggc-common.c (ggc_mark_trees): Likewise. * profile.c (output_func_start_profiler): Likewise. * varasm.c (make_decl_rtl): Likewise. * class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME, COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME where it's not necessary. (add_method): Remove optimization involving comparison of DECL_ASSEMBLER_NAME. (build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME, COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME where it's not necessary. (check_methods): Likewise. (build_clone): Likewise. (built_vtt): Likewise. * cp-tree.h (DECL_NEEDED_P): Likewise. * decl.c (pushtag): Likewise. (duplicate_decls): Likewise. (pushdecl): Likewise. (builtin_function): Likewise. (build_library_fn_1): Set DECL_LANGUAGE for library functions. (build_cp_library_fn): Likewise. (maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME, COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME where it's not necessary. (make_rtl_for_nonlocal_decl): Likewise. (cp_finish_decl): Likewise. (grokfndecl): Likewise. (grokvardecl): Likewise. (grokdeclarator): Likewise. (start_function): Likewise. (cp_missing_return_ok_p): Likewise. * decl2.c (grokclassfn): Likewise. (check_classfn): Likewise. (finish_static_data_member_decl): Likewise. (grokfield): Likewise. * error.c (GLOBAL_IORD_P): Remove. (dump_global_iord): Improve output. (dump_decl): Avoid using DECL_ASSEMBLER_NAME. * except.c (nothrow_libfn_p): Summarily reject any function not in namespace-scope. * init.c (build_java_class_ref): Don't explicitly set DECL_ASSEMBLER_NAME after calling mangle_decl. * mangle.c (mangle_decl_string): Handle extern "C" functions. (mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl. * method.c (set_mangled_name_for_decl): Don't explicitly set DECL_ASSEMBLER_NAME after calling mangle_decl. (make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and IDENTIFIER_GLOBAL_VALUE for the thunk. * pt.c (set_mangled_name_for_template_decl): Remove. (check_explicit_specialization): Don't use it. (looup_template_class): Don't set DECL_ASSEMBLER_NAME. (tsubst_friend_function): Likewise. (tsubst_decl): Likewise. (regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME. * rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME, COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME where it's not necessary. (tinfo_base_init): Likewise. (create_real_tinfo_var): Likewise. * search.c (looup_field_1): Likewise. * semantics.c (finish_named_return_value): Likewise. * tree.c (init_tree): Set lang_set_decl_assembler_name. * com.c (builtin_function): Use SET_DECL_ASSEMBLER_NAME. * class.c (build_class_ref): Use SET_DECL_ASSEMBLER_NAME. (layout_class): Likewise. (layout_class_method): Likewise. (emit_register_classes): Likewise. * decl.c (builtin_function): Likewise. (give_name_to_locals): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40642 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-parse.c (load_inner_classes): Check CLASS_LOADED_Pbothner2001-03-192-1/+5
| | | | | | | before trying to load an inner class. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40638 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixes to process to command-line .class files in two passes. See ChangeLog.bothner2001-03-197-71/+122
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40637 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvspec.c (lang_specific_driver): Check for .zip and .jar files.bothner2001-03-192-30/+45
| | | | | | | | | Add constructed filelist-file at end, following -xjava. Thus any .o and library files are not affected by the -xjava. Also wrap explicut @FILE with -xjava and -xnone. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40621 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-19 Andrew Haley <aph@cambridge.redhat.com>aph2001-03-192-1/+6
| | | | | | | | * class.c (build_static_field_ref): Call make_decl_rtl() after setting the DECL_EXTERNAL flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40620 138bc75d-0d04-0410-961f-82ee72b054a4
* Change descriptions were jumbled.bothner2001-03-171-9/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40587 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c (clear_binding_level): Fix initializer (broke 03-15).bothner2001-03-172-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40586 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-write.c (generate_bytecode_insns): Handle emitting iincbothner2001-03-172-0/+5
| | | | | | | when result is is needed (target is STACK_TARGET). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40585 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.h (JDEP_SOLV): Removed.bothner2001-03-173-20/+20
| | | | | | | | | | | | | | | | | * parse.y (incomplete_class_list): Removed. (register_incomplete_type): Use JDEP_TO_RESOLVE instead of JDEP_SOLV. * parse.y (obtain_incomplete_type): Removed. It doesn't work if resolve_class changes the name of an array type that is on the list and then someone else looks for the modified name. Also, seems liable to break when compiling multiple source files at once. So the simplest is to just remove incomplete_class_list - it is only a minor space win and it is not even clear it saves time. * parse.y (resolve_class): Remove unneeded promote_type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40584 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h (BLOCK_IS_IMPLICIT): New flag.bothner2001-03-164-8/+11
| | | | | | | | | * parse.h (BLOCK_EXPR_ORIGIN): Removed macro. * parse.y (declare_local_variables, maybe_absorb_scoping_blocks): Use BLOCK_IS_IMPLICIT rather than BLOCK_EXPR_ORIGIN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40542 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-parse.c (yyparse): Set/reset input_filename for source file.bothner2001-03-163-1/+8
| | | | | | | * parse.y (java_expand_classes): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40541 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (expand_start_java_method): Was only called once and had abothner2001-03-162-53/+42
| | | | | | | | misleading name, so inline in caller java_complete_expand_method. (enter_a_block): Likewise inline in enter_block and remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40540 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove junk from when gcc/java was created (by copying from C/C++).bothner2001-03-162-31/+9
| | | | | | | | | | * decl.c (keep_next_level_flag, keep_next_if_subblocks): Remove. (struct binding_level): Remove fields keep, keep_if_subblocks, more_cleanups_ok, have_cleanups (which have never been used). (pushlevel, poplevel): Remove related useless code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40539 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud