aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
2001-03-27c-common.h (DECL_NUM_STMTS): New macro.Mark Mitchell2-1/+5
* c-common.h (DECL_NUM_STMTS): New macro. * 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. From-SVN: r40859
2001-03-26parse.y (find_as_inner_class): Follow current package indications not to ↵Alexandre Petit-Bianco2-1/+17
mistakingly load an unrelated class. 2001-03-26 Alexandre Petit-Bianco <apbianco@redhat.com> * 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) From-SVN: r40851
2001-03-26constants.c (PUTN): Use memcpy, not bcopy.Kaveh R. Ghazi4-7/+13
* constants.c (PUTN): Use memcpy, not bcopy. * lex.c (java_read_char): Use memmove, not bcopy. * parse.y (java_parser_context_resume): Use memcpy, not bcopy. From-SVN: r40836
2001-03-23re PR java/1208 (Gcj can't compile a class file it generates.)Per Bothner5-46/+61
e * 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. From-SVN: r40801
2001-03-23re PR java/1213 (gcj should check for incorrect CLASSPATH)Alexandre Petit-Bianco9-14/+106
2001-03-22 Alexandre Petit-Bianco <apbianco@redhat.com> * 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) From-SVN: r40788
2001-03-23gcj.texi (Configure-time Options): Add -fcheck-references.Andrew Haley2-25/+21
2001-02-07 Andrew Haley <aph@redhat.com> * 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. From-SVN: r40782
2001-03-23gcj.texi (Configure-time Options): Add -fcheck-references.Andrew Haley6-52/+86
2001-02-07 Andrew Haley <aph@redhat.com> * 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. From-SVN: r40780
2001-03-23gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c.Bryce McKinlay3-8/+159
* gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c. * lex.c (cxx_keywords): Likewise. From-SVN: r40773
2001-03-23[multiple changes]Bryce McKinlay2-1/+11
2001-03-23 Bryce McKinlay <bryce@albatross.co.nz> * 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. From-SVN: r40769
2001-03-21re PR java/2333 (ICE in mark_reference_fields)Alexandre Petit-Bianco3-2/+13
2001-03-21 Alexandre Petit-Bianco <apbianco@redhat.com> * 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) From-SVN: r40719
2001-03-21* lex.c (java_read_unicode): Only accept leading `u's.Tom Tromey2-5/+14
From-SVN: r40702
2001-03-20* jcf-parse.c (read_class): Initialize `class'.Tom Tromey2-1/+5
From-SVN: r40678
2001-03-20jcf_parse.c (jcf_parse): Eliminate unused variable.Matt Kraai2-1/+4
2001-03-20 Matt Kraai <kraai@alumni.carnegiemellon.edu> * jcf_parse.c (jcf_parse): Eliminate unused variable. From-SVN: r40676
2001-03-19Compute DECL_ASSEMBLER_NAME lazily.Mark Mitchell3-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. From-SVN: r40642
2001-03-19jcf-parse.c (load_inner_classes): Check CLASS_LOADED_P before trying to load ↵Per Bothner2-1/+5
an inner class. * jcf-parse.c (load_inner_classes): Check CLASS_LOADED_P before trying to load an inner class. From-SVN: r40638
2001-03-19Fixes to process to command-line .class files in two passes. See ChangeLog.Per Bothner7-71/+122
From-SVN: r40637
2001-03-19jvspec.c (lang_specific_driver): Check for .zip and .jar files.Per Bothner2-30/+45
* jvspec.c (lang_specific_driver): Check for .zip and .jar files. 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. From-SVN: r40621
2001-03-19class.c (build_static_field_ref): Call make_decl_rtl() after setting the ↵Andrew Haley2-1/+6
DECL_EXTERNAL flag. 2001-03-19 Andrew Haley <aph@cambridge.redhat.com> * class.c (build_static_field_ref): Call make_decl_rtl() after setting the DECL_EXTERNAL flag. From-SVN: r40620
2001-03-17Change descriptions were jumbled.Per Bothner1-9/+9
From-SVN: r40587
2001-03-17* decl.c (clear_binding_level): Fix initializer (broke 03-15).Per Bothner2-1/+3
From-SVN: r40586
2001-03-17jcf-write.c (generate_bytecode_insns): Handle emitting iinc when result is ↵Per Bothner2-0/+5
is needed (target is STACK_TARGET). * jcf-write.c (generate_bytecode_insns): Handle emitting iinc when result is is needed (target is STACK_TARGET). From-SVN: r40585
2001-03-17parse.h (JDEP_SOLV): Removed.Per Bothner3-20/+20
* parse.h (JDEP_SOLV): Removed. * 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. From-SVN: r40584
2001-03-15java-tree.h (BLOCK_IS_IMPLICIT): New flag.Per Bothner4-8/+11
* java-tree.h (BLOCK_IS_IMPLICIT): New flag. * 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. From-SVN: r40542
2001-03-15jcf-parse.c (yyparse): Set/reset input_filename for source file.Per Bothner3-1/+8
* jcf-parse.c (yyparse): Set/reset input_filename for source file. * parse.y (java_expand_classes): Likewise. From-SVN: r40541
2001-03-15parse.y (expand_start_java_method): Was only called once and had a ↵Per Bothner2-53/+42
misleading name... * parse.y (expand_start_java_method): Was only called once and had a misleading name, so inline in caller java_complete_expand_method. (enter_a_block): Likewise inline in enter_block and remove. From-SVN: r40540
2001-03-15Remove junk from when gcc/java was created (by copying from C/C++).Per Bothner2-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. From-SVN: r40539
2001-03-15class.c (make_class_data): The class_dtable_decl (i.e.Per Bothner2-0/+5
* class.c (make_class_data): The class_dtable_decl (i.e. the vtable for Class) should be external, except when compiling Class. From-SVN: r40534
2001-03-15jvspec.c (lang_specific_driver): Fix -C handling.Per Bothner2-2/+11
* jvspec.c (lang_specific_driver): Fix -C handling. Check -save-temps to see if temp @FILE should be deleted. Follow-up to/fix for February 16 patch. From-SVN: r40530
2001-03-15verify.c (verify_jvm_instructions): Better error msgs for dup.Per Bothner2-8/+17
* verify.c (verify_jvm_instructions): Better error msgs for dup. (type_stack_dup): Remove no-longer neded error check. From-SVN: r40529
2001-03-15mangle.c (mangle_record_type): Rename 'from_pointer' argument to 'for_pointer'.Bryce McKinlay2-11/+24
* mangle.c (mangle_record_type): Rename 'from_pointer' argument to 'for_pointer'. If this type is for a pointer (argument) mangling, don't surround the element with 'N..E' if the type name is unqualified. From-SVN: r40519
2001-03-15* varasm.c (assemble_variable): Use DECL_RTL_SET_P.Mark Mitchell1-1/+2
From-SVN: r40495
2001-03-15varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME...Mark Mitchell3-5/+13
* varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME, not the contents of the RTL, to determine the name of the object. * tree.h (DECL_RTL): Allocate RTL lazily. (SET_DECL_RTL): New macro. (DECL_RTL_SET_P): Likewise. (COPY_DECL_RTL): Likewise. (DECL_RTL_IF_SET): Likewise. * varasm.c (make_decl_rtl): Add assertions about the kind of declaration we are processing. * c-decl.c (duplicate_decls): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. (start_decl): Likewise. (finish_decl): Likewise. * c-semantics.c (emit_local_var): Likewise. * calls.c (expand_call): Likewise. * dbxout.c (dbxout_symbol): Likewise. * emit-rtl.c (unshare_all_rtl): Likewise. (unshare_all_decls): Likewise. (reset_used_decls): Likewise. * expr.c (store_constructor): Likewise. (safe_from_p): Likewise. (expand_expr): Likewise. * function.c (put_var_into_stack): Likewise. (instantiate_decls_1): Likewise. (assign_parms): Likewise. (expand_function_start): Likewise. (expand_function_end): Likewise. * ggc-common.c (gcc_mark_trees): Likewise. * integrate.c (function_cannot_inline_p): Likewise. (copy_decl_for_inlining): Likewise. (expand_inline_function): Likewise. (integrate_parm_decls): Likewise. (integrate_decl_tree): Likewise. * print-tree.c (print_node): Likewise. * reg-stack.c (stack_result): Likewise. * stmt.c (label_rtx): Likewise. (expand_return): Likewise. (expand_decl): Likewise. (expand_decl_cleanup): Likewise. (expand_anon_union_decl): Likewise. * toplev.c (check_global_declarations): Likewise. (rest_of_decl_compilation): Likewise. * tree.c (simple_cst_equal): Likewise. * objc/objc-act.c (generate_static_references): Likewise. * class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. * cp-tree.h (DECL_IN_MEMORY_P): Likewise. * decl.c (duplicate_decls): Likewise. (builtin_function): Likewise. (build_library_fn): Likewise. (build_cp_library_fn): Likewise. (check_initializer): Likewise. (cp_finish_decl): Likewise. * decl2.c (grokfield): Likewise. (grok_function_init): Remove #if 0'd code. (finish_anon_union): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. * friend.c (do_friend): Likewise. * init.c (get_temp_regvar): Likewise. * method.c (make_thunk): Likewise. * pt.c (tsubst_friend_function): Likewise. (tsubst_decl): Likewise. (regenerate_decl_from_template): Likewise. * semantics.c (genrtl_named_return_value): Likewise. (expand_body): Likewise. (genrtl_finish_function): Likewise. * tree.c (cp_tree_equal): Likewise. * com.c (ffecom_member_phase_2): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. (duplicate_decls): Likewise. (start_decl): Likewise. * class.c (build_static_field_ref): Likewise. (make_method_value): Likewise. (get_dispatch_table): Likewise. * decl.c (push_jvm_slot): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc. From-SVN: r40482
2001-03-07* config-lang.in (lang_requires): Define.Tom Tromey2-0/+5
From-SVN: r40307
2001-03-07Brad's -ffast-math breakup.Brad Lucier2-1/+6
From-SVN: r40300
2001-03-05Fix a problem where rest_of_decl_compilation applied to class_dtable_decl ↵Per Bothner4-12/+24
causes problems because it was done too early... Fix a problem where rest_of_decl_compilation applied to class_dtable_decl causes problems because it was done too early, before output file was opened. * decl.c (init_decl_processing): Remove init of class_dtable_decl. * class.c (class_dtable_decl): Add macro - element of class_roots. (make_class_data): Define class_dtable_decl. * java-tree.h (JTI_CLASS_DTABLE_DECL, class_dtable_decl): Removed. From-SVN: r40256
2001-03-02xm-lynx.h, [...]: Do not define TRUE or FALSE.Zack Weinberg5-6/+11
* config/xm-lynx.h, config/xm-std32.h, config/a29k/xm-a29k.h, config/a29k/xm-unix.h, config/alpha/xm-alpha.h, config/arc/xm-arc.h, config/arm/xm-arm.h, config/c4x/xm-c4x.h, config/clipper/xm-clix.h, config/convex/xm-convex.h, config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h, config/elxsi/xm-elxsi.h, config/fr30/xm-fr30.h, config/h8300/xm-h8300.h, config/i370/xm-i370.h, config/i370/xm-linux.h, config/i370/xm-mvs.h, config/i370/xm-oe.h, config/i386/xm-aix.h, config/i386/xm-i386.h, config/i386/xm-osf.h, config/i860/xm-i860.h, config/i960/xm-i960.h, config/ia64/xm-ia64.h, config/m32r/xm-m32r.h, config/m68k/xm-m68k.h, config/m88k/xm-m88k.h, config/mcore/xm-mcore.h, config/mips/xm-mips.h, config/mn10200/xm-mn10200.h, config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h, config/pa/xm-linux.h, config/pa/xm-pa.h, config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h, config/pa/xm-papro.h, config/pj/xm-pj.h, config/romp/xm-romp.h, config/rs6000/xm-beos.h, config/rs6000/xm-rs6000.h, config/rs6000/xm-sysv4.h, config/sh/xm-sh.h, config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h, config/v850/xm-v850.h, config/vax/xm-vax.h, config/vax/xm-vms.h, config/we32k/xm-we32k.h: Do not define TRUE or FALSE. * config/i386/xm-aix.h, config/i386/xm-osf.h: Delete; made empty by above change. * config.gcc: Remove references to these files. * configure.in: Detect stdbool.h. * configure, config.in: Regenerate. * system.h: Include stddef.h here if available. Set HAVE__BOOL based on GCC_VERSION and __STDC_VERSION__. Then set up a sensible boolean type at the very end. * combine.c, cse.c, expr.c, fold-const.c, gensupport.c, f/com.c, config/mcore/mcore.c: Rename variables named 'true' and/or 'false'. * hash.h: Delete 'boolean' typedef and related #undefs. * f/proj.h: Delete 'bool' type. Don't include stddef.h here. * function.c, ggc-common.c, hash.h, hash.c, tlink.c, cp/decl.c, java/class.c, java/decl.c, java/java-tree.h: Replace all uses of 'boolean' with 'bool'. From-SVN: r40176
2001-03-02gcc.c, [...]: Add zero initializer for cpp_spec field to all array elements.Zack Weinberg2-5/+10
* gcc.c, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h, objc/lang-specs.h: Add zero initializer for cpp_spec field to all array elements. * cp/lang-specs.h: Don't put an #ifdef inside the initializer list; set a default for CPLUSPLUS_CPP_SPEC and use it. From-SVN: r40173
2001-02-23Handle compiling multiple input files at once, and @FILE syntax.Per Bothner3-4/+42
* gcj.texi: Updated documentation to match. and parse.h inadvertently left out from previous check-in. From-SVN: r40026
2001-02-23Handle compiling multiple input files at once, and @FILE syntax. See ChangeLog.Per Bothner8-86/+208
From-SVN: r40024
2001-02-23c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.Richard Kenner2-0/+8
* c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK. * ch/decl.c, f/com.c, java/decl.c: Likewise. From-SVN: r40010
2001-02-20parse.y (check_inner_class_access): Moved declaration of local ↵Alexandre Petit-Bianco2-1/+7
`enclosing_decl_type' to the right location. 2001-02-20 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (check_inner_class_access): Moved declaration of local `enclosing_decl_type' to the right location. (http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01258.html) From-SVN: r39933
2001-02-19Forgot this file on last check-in.Bryce McKinlay1-5/+0
From-SVN: r39910
2001-02-19parse.y (parser_check_super_interface): Don't call check_pkg_class_access ↵Bryce McKinlay2-41/+146
for an inner interface. * parse.y (parser_check_super_interface): Don't call check_pkg_class_access for an inner interface. (parser_check_super): Don't call check_pkg_class_access for inner class. (do_resolve_class): Simplify enclosing type loop. Don't call check_pkg_class_access if CL and DECL are not set. (find_in_imports_on_demand): Set DECL if class_type needed to be loaded. Don't call check_pkg_class_access for an inner class. (check_inner_class_access): Rewritten to implement member access rules as per spec 6.6.1. (check_pkg_class_access): Handle the empty package correctly. (in_same_package): New function. Determine if two classes are in the same package. From-SVN: r39909
2001-02-19typeck.c (build_java_array_type): Don't try to poke a public `clone' method ↵Bryce McKinlay2-1/+18
into array types. * typeck.c (build_java_array_type): Don't try to poke a public `clone' method into array types. * parse.y (patch_method_invocation): Bypass access check on clone call to array instance. From-SVN: r39906
2001-02-16expr.c (build_instanceof): Check for arrays when trying fold to false.Alexandre Petit-Bianco2-6/+13
2001-02-15 Alexandre Petit-Bianco <apbianco@redhat.com> * expr.c (build_instanceof): Check for arrays when trying fold to false. (http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00993.html) From-SVN: r39778
2001-02-15Fix typosDJ Delorie1-2/+2
From-SVN: r39745
2001-02-15Makefile.in (install-common): Don't depend on installdirs here.Jim Meyering2-2/+7
gcc/: 2001-01-20 Jim Meyering <meyering@lucent.com> * Makefile.in (install-common): Don't depend on installdirs here. Instead, make each of the lang.install-common targets (e.g., c++.install-common in cp/Make-lang.in) depend on it. (install-driver): Depend on installdirs. gcc/ch: 2001-02-15 Jim Meyering <meyering@lucent.com> * Make-lang.in (CHILL.install-common): Depend on `installdirs'. (CHILL.install-info): Likewise. gcc/cp: 2001-02-15 Jim Meyering <meyering@lucent.com> * Make-lang.in (c++.install-common): Depend on installdirs. (c++.install-info): Likewise (c++.install-man): Likewise gcc/java: 2001-02-15 Jim Meyering <meyering@lucent.com> * Make-lang.in (java.install-common): Depend on `installdirs'. (java.install-info): Likewise. From-SVN: r39744
2001-02-15* Make-lang.in (jvspec.o): Modify rule to match that of cp/g++spec.o.Bryce McKinlay2-1/+7
From-SVN: r39702
2001-02-14[multiple changes]Alexandre Petit-Bianco3-36/+86
2001-02-14 Tom Tromey <tromey@redhat.com> Alexandre Petit-Bianco <apbianco@redhat.com> Fix for PR java/1261. * typeck.c (build_java_array_type): Add public `clone' method to arrays. * parse.y (resolve_qualified_expression_name): Use current_class when checking for inaccessibility. (patch_method_invocation): Fixed error message when accessibility denied. Added `from_super' argument. 2001-02-14 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (resolve_class): Don't build a fake decl. Use the one already built. * typeck.c (build_java_array_type): Build and assign decl to array type. 2001-02-14 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (not_accessible_p): Changed leading comment. Added extra `where' argument. Use it to enforce protected access rules. (resolve_qualified_expression_name): Added extra argument to not_accessible_p. (patch_method_invocation): Use argument `primary' to provide not_accessible_p with an extra argument. (lookup_method_invoke): Added extra argument to not_accessible_p. (search_applicable_method_list): Likewise. (http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00849.html) From-SVN: r39701
2001-02-13parse.y (resolve_qualified_expression_name): Try to resolve as an inner ↵Alexandre Petit-Bianco2-2/+8
class access only if `decl' is a TYPE_DECL. 2001-02-13 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (resolve_qualified_expression_name): Try to resolve as an inner class access only if `decl' is a TYPE_DECL. (http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00762.html) From-SVN: r39653