1. 10 Jan, 2001 5 commits
  2. 09 Jan, 2001 3 commits
    • class.c (handle_using_decl): Reject using of constructor name of sourcing class. · 186c0fbe
      cp:
      	* class.c (handle_using_decl): Reject using of constructor name
      	of sourcing class. Allow injecting of a method with same name as
      	nested class. Fixup error messages.
      testsuite:
      	* g++.old_deja/g++.pt/using8.C: New test.
      
      From-SVN: r38831
      Nathan Sidwell committed
    • c-lang.c (lang_hooks): Update. · 13c61421
              * c-lang.c (lang_hooks): Update.
              (lang_init): Rename c_init.
              (lang_finish): Remove.
              * toplev.c (compile_file): Use lang_hooks for lang_init ()
              and lang_finish ().
              * toplev.h (lang_hooks): Add init () and finish ().
              * tree.h (lang_init, lang_finish): Remove.
              * cp/tree.h (lang_init, lang_finish): Remove.
              * cp/decl2.c (cxx_post_options, lang_hooks): Move to cp/lex.c.
              * cp/lex.c (cxx_init, cxx_finish, cxx_post_options,
              lang_hooks): New.
              (lang_init, lang_finish): Remove.
              * f/com.c (lang_init, lang_finish): Rename f_init, f_finish.
              (lang_hooks): Update.
              * java/lang.c (lang_init): Rename java_init.
              (lang_finish): Remove.
              (lang_hooks): Update.
              * objc/objc-act.c (lang_init): Rename objc_init.
              (lang_finish): Remove.
              (lang_hoooks): Update.
      
      From-SVN: r38828
      Neil Booth committed
    • * decl2.c (lang_decode_option): Handle -Wformat=2. · 28ec8d6b
      From-SVN: r38825
      Joseph Myers committed
  3. 08 Jan, 2001 5 commits
    • cp-tree.h (lang_decl_flags): Rename defined_in_class to initialized_in_class. · 3febd123
      cp:
      	* cp-tree.h (lang_decl_flags): Rename defined_in_class to
      	initialized_in_class.
      	(DECL_DEFINED_IN_CLASS_P): Rename to ...
      	(DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
      	* decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
      	(cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
      	* pt.c (check_default_tmpl_args): Adjust for
      	DECL_INITIALIZED_IN_CLASS_P.
      	(instantiate_class_template): Likewise.
      	(instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.
      
      	* class.c (finish_struct): Constify saved_filename.
      testsuite:
      	* g++.old_deja/g++.pt/instantiate12.C: New test.
      
      From-SVN: r38801
      Nathan Sidwell committed
    • class.c (duplicate_tag_error): Adjust diagnostic. · 1f0d71c5
      cp:
      	* class.c (duplicate_tag_error): Adjust diagnostic.
      	(finish_struct): Locally set location to start of struct.
      	* decl.c (fixup_anonymous_aggr): Use cp_error_at.
      testsuite:
      	* g++.old-deja/g++.benjamin/15309-1.C: Expect diagnostic at
      	start of structs.
      	* g++.old-deja/g++.benjamin/15309-2.C: Likewise.
      	* g++.old-deja/g++.brendan/crash17.C: Likewise.
      	* g++.old-deja/g++.brendan/crash29.C: Likewise.
      	* g++.old-deja/g++.brendan/crash48.C: Likewise.
      	* g++.old-deja/g++.brendan/ns1.C: Likewise.
      	* g++.old-deja/g++.brendan/warnings1.C: Likewise.
      	* g++.old-deja/g++.bugs/900205_04.C: Likewise.
      	* g++.old-deja/g++.bugs/900514_03.C: Likewise.
      	* g++.old-deja/g++.eh/spec6.C: Likewise.
      	* g++.old-deja/g++.jason/crash3.C: Likewise.
      	* g++.old-deja/g++.law/ctors11.C: Likewise.
      	* g++.old-deja/g++.law/ctors17.C: Likewise.
      	* g++.old-deja/g++.law/ctors5.C: Likewise.
      	* g++.old-deja/g++.law/ctors9.C: Likewise.
      	* g++.old-deja/g++.mike/ambig1.C: Likewise.
      	* g++.old-deja/g++.mike/net22.C: Likewise.
      	* g++.old-deja/g++.mike/p3538a.C: Likewise.
      	* g++.old-deja/g++.mike/p3538b.C: Likewise.
      	* g++.old-deja/g++.mike/virt3.C: Likewise.
      	* g++.old-deja/g++.niklas/t128.C: Likewise.
      	* g++.old-deja/g++.other/anon4.C: Likewise.
      	* g++.old-deja/g++.other/using1.C: Likewise.
      	* g++.old-deja/g++.other/warn3.C: Likewise.
      	* g++.old-deja/g++.pt/t37.C: Likewise.
      	* g++.old-deja/g++.robertl/eb69.C: Likewise.
      	* g++.old-deja/g++.robertl/eb71.C: Likewise.
      
      From-SVN: r38798
      Nathan Sidwell committed
    • Oops, wrong email on previous changelog · 5bf15e84
      From-SVN: r38797
      Nathan Sidwell committed
    • decl.c (struct binding_level): Adjust class_shadowed comments to reflect reality. · 76191fdd
      cp:
      	* decl.c (struct binding_level): Adjust class_shadowed comments
      	to reflect reality.
      	(push_class_level_binding): Ajust comments to reflect reality.
      	Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
      	Don't set TREE_VALUE on the class_shadowed list.
      testsuite:
      	* g++.old-deja/g++.other/lookup16.C: Remove XFAIL.
      
      From-SVN: r38796
      Nathan Sidwell committed
    • decl2.c (grokfield): Don't accept `asm' specifiers for non-static data members. · 0c58da3e
      	* decl2.c (grokfield): Don't accept `asm' specifiers for
      	non-static data members.
      
      From-SVN: r38792
      Mark Mitchell committed
  4. 07 Jan, 2001 3 commits
    • * expr.c (cplus_expand_expr): Don't reset `target'. · 45b8ddb4
      From-SVN: r38787
      Kaveh R. Ghazi committed
    • c-lang.c (c_post_options): Call cpp_post_options. · 96302433
              * c-lang.c (c_post_options): Call cpp_post_options.
              * cppmain.c (main): Similarly.
              * fix-header.c (read_scan_file): Similarly.
              * cp/decl2.c (cxx_post_options): Similarly.
              * objc/objc-act.c (objc_post_options): Similarly.
              * cppinit.c (cpp_start_read): Move option consistency checks
              to cpp_post_options.  Don't call init_dependency_output.
              If needed, add default target and main file dependency.
              (OPT_MD, OPT_MMD): Remove.
              (OPT_MF): New.
              (cpp_handle_option): Update for OPT_* changes.
              (cpp_post_options): New.
              (init_dependency_output): Command line -MF overrides environment
              variables.  Don't set default target etc.  Suppress output
              if dependencies are going to stdout.
              (print_help): Update.
              * cpplib.h (cpp_post_options): New.
              * gcc.c (cpp_options): Update for -MD, -MMD, -MF.
      
      From-SVN: r38777
      Neil Booth committed
    • toplev.c (main): Call the front-end specific post_options hook if one is given. · cd2a3ba2
              * toplev.c (main): Call the front-end specific post_options
              hook if one is given.
              * toplev.h (struct_lang_hooks, lang_hooks): New.
              * c-lang.c (c_post_options, lang_hooks): Implement lang_hooks
              for the C front end.
              * cp/decl2.c (cxx_post_options, lang_hooks): Implement
              lang_hooks for the C++ front end.
              * objc/objc-act.c (objc_post_options, lang_hooks): Implement
              lang_hooks for the ObjC front end.
              * f/com.c (lang_hooks): Hooks for the Fortran front end.
              * java/lang.c (lang_hooks): Hooks for the Java front end.
      
      From-SVN: r38757
      Neil Booth committed
  5. 05 Jan, 2001 3 commits
  6. 04 Jan, 2001 3 commits
    • c-common.c (SIZE_TYPE, WCHAR_TYPE): Define. · eaa7c03f
      	* c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
      	(flag_short_double, flag_short_wchar): Define.
      	(c_common_nodes_and_builtins): Create many tree nodes shared
      	between C and C++ here instead of in cp/decl.c and ...
      	* c-decl.c (init_decl_processing): ... here.
      	(SIZE_TYPE, WCHAR_TYPE): Don't define.
      	(flag_short_double, flag_short_wchar): Don't define.
      	(record_builtin_type): New function.
      	(build_void_list_node): New function.
      	* c-common.h (flag_short_double, flag_short_wchar,
      	record_builtin_type, build_void_list_node): Declare.
      
      cp:
      	* decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
      	(record_builtin_type): Make non-static.
      	(flag_short_double): Don't declare.
      	(init_decl_processing): Remove the creation of many tree nodes now
      	in c_common_nodes_and_builtins.
      	(build_void_list_node): New function.
      	* decl2.c (flag_short_double, flag_short_wchar): Don't define.
      	* cp-tree.h (flag_short_wchar): Don't declare.
      
      From-SVN: r38695
      Joseph Myers committed
    • call.c (build_conv): Don't use build1 for USER_CONV. · 519c9806
      	* call.c (build_conv): Don't use build1 for USER_CONV.
      	* pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
      
      From-SVN: r38688
      Mark Mitchell committed
    • tree.c (copy_node): Remove documentation about obstacks. · 3af4c257
      	* tree.c (copy_node): Remove documentation about obstacks.
      	(buidl1): Check that nobody tries to build 2-argument nodes this
      	way.
      
      	* call.c (build_conv): Don't use build1 for USER_CONV.
      	* pt.c (tsubst_copy): Or for PREINCREMENT_EXPR and similar nodes.
      
      From-SVN: r38686
      Mark Mitchell committed
  7. 03 Jan, 2001 6 commits
    • c-common.c (c_common_lang_init): New function. · 03dc0325
      	* c-common.c (c_common_lang_init): New function.  Warn if format
      	warning options which only have effects when used with -Wformat
      	are used without -Wformat.
      	* c-common.h (c_common_lang_init): Declare.
      	* c-lang.c (lang_init): Call c_common_lang_init.
      	* objc/objc-act.c (lang_init): Call c_common_lang_init.
      
      cp:
      	* lex.c (lang_init): Call c_common_lang_init.
      
      From-SVN: r38672
      Joseph Myers committed
    • search.c (lookup_fnfields_here): Remove. · 3c505507
      cp:
      	* search.c (lookup_fnfields_here): Remove.
      	(look_for_overrides_r): Use lookup_fnfields_1.
      	Ignore functions from using declarations.
      testsuite:
      	* g++.old-deja/g++.other/virtual11.C: New test.
      
      From-SVN: r38661
      Nathan Sidwell committed
    • Implement exceptions specifiers for implicit member functions. · 03378143
      cp:
      	Implement exceptions specifiers for implicit member functions.
      	* cp-tree.h (merge_exceptions_specifiers): Declare new function.
      	* method.c (synthesize_exception_spec): New function.
      	(locate_dtor, locate_ctor, locate_copy): New functions.
      	(implicitly_declare_fn): Generate the exception spec too.
      	* search.c (check_final_overrider): Check artificial functions
      	too.
      	* typeck2.c (merge_exception_specifiers): New function.
      testsuite:
      	* g++.old-deja/g++.eh/spec6.C: Remove remaining XFAIL.
      
      From-SVN: r38659
      Nathan Sidwell committed
    • init.c (build_default_init): New fn. · f30efcb7
              * init.c (build_default_init): New fn.
              (perform_member_init): Split out from here.
              (build_new_1): Use it.  Simplify initialization logic.
              (build_vec_init): Take an array, rather than a pointer and maxindex.
              Speed up simple initializations.  Don't clean up if we're assigning.
              * cp-tree.h: Adjust.
              * decl2.c (do_static_initialization): Remove TREE_VEC case.
              * parse.y (new_initializer): Return void_zero_node for ().
              * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR.
              * typeck2.c (digest_init): Only complain about user-written
              CONSTRUCTORs.
      
      From-SVN: r38643
      Jason Merrill committed
    • * decl2.c: (max_tinst_depth): Increase to 50. · a412bf75
      From-SVN: r38642
      Mike Stump committed
    • class.c (invalidate_class_lookup_cache): Zero the previous_class_values. · 4890c2f4
      	* class.c (invalidate_class_lookup_cache): Zero the
      	previous_class_values.
      	* cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not
      	TREE_INT_CST_HIGH.
      	(CLASSTYPE_TEMPLATE_LEVEL): Likewise.
      	* decl.c (free_bindings): New variable.
      	(push_binding): Don't create a new binding if we have one on the
      	free list.
      	(pop_binding): Put old bindings on the free list.
      	(init_decl_processing): Use size_int, not build_int_2.
      	Register free_bindings as a GC root.
      	(cp_make_fname_decl): Use size_int, not build_int_2.
      	(push_inline_template_parms_recursive): Likewise.
      	(end_template_parm_list): Likewise.
      	(for_each_tempalte_parm): Do not use walk_tree_without_duplicates.
      	(tsubst_template_parms): Use size_int, not build_int_2.
      	(tsubst): Likewise.
      	* rtti.c (get_vmi_pseudo_type_info): Likewise.
      
      From-SVN: r38641
      Mark Mitchell committed
  8. 02 Jan, 2001 5 commits
  9. 29 Dec, 2000 5 commits
  10. 23 Dec, 2000 1 commit
  11. 22 Dec, 2000 1 commit