1. 21 Mar, 2001 1 commit
  2. 20 Mar, 2001 2 commits
  3. 19 Mar, 2001 5 commits
    • Compute DECL_ASSEMBLER_NAME lazily. · 92643fea
      	* 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
      Mark Mitchell committed
    • jcf-parse.c (load_inner_classes): Check CLASS_LOADED_P before trying to load an inner class. · 80fc2e84
      	* jcf-parse.c (load_inner_classes):  Check CLASS_LOADED_P
      	before trying to load an inner class.
      
      From-SVN: r40638
      Per Bothner committed
    • jvspec.c (lang_specific_driver): Check for .zip and .jar files. · 8b1edcee
      	* 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
      Per Bothner committed
    • class.c (build_static_field_ref): Call make_decl_rtl() after setting the DECL_EXTERNAL flag. · 6bc5f6cb
      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
      Andrew Haley committed
  4. 17 Mar, 2001 4 commits
  5. 16 Mar, 2001 7 commits
  6. 15 Mar, 2001 3 commits
    • mangle.c (mangle_record_type): Rename 'from_pointer' argument to 'for_pointer'. · 551bf03c
      	* 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
      Bryce McKinlay committed
    • * varasm.c (assemble_variable): Use DECL_RTL_SET_P. · d1d61788
      From-SVN: r40495
      Mark Mitchell committed
    • varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME... · 19e7881c
      	* 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
      Mark Mitchell committed
  7. 07 Mar, 2001 2 commits
  8. 06 Mar, 2001 1 commit
    • Fix a problem where rest_of_decl_compilation applied to class_dtable_decl causes… · 6d37cf2f
      Fix a problem where rest_of_decl_compilation applied to class_dtable_decl 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
      Per Bothner committed
  9. 02 Mar, 2001 2 commits
    • xm-lynx.h, [...]: Do not define TRUE or FALSE. · d6edb99e
      	* 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
      Zack Weinberg committed
    • gcc.c, [...]: Add zero initializer for cpp_spec field to all array elements. · f7143427
      	* 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
      Zack Weinberg committed
  10. 24 Feb, 2001 2 commits
  11. 23 Feb, 2001 1 commit
  12. 20 Feb, 2001 1 commit
  13. 19 Feb, 2001 3 commits
  14. 16 Feb, 2001 3 commits
  15. 15 Feb, 2001 2 commits
    • [multiple changes] · e101152f
      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
      Alexandre Petit-Bianco committed
  16. 14 Feb, 2001 1 commit