- 10 Jan, 2001 5 commits
-
-
cp: * error.c (dump_template_parameter): Use parm to determine how to print default value. testsuite: * g++.old_deja/g++.pt/error3.C: New test. From-SVN: r38869
Nathan Sidwell committed -
cp: * class.c (duplicate_tag_error): Clear more flags. testsuite: * g++.old_deja/g++.other/crash39.C: New test. From-SVN: r38867
Nathan Sidwell committed -
cp: * call.c (build_new_method_call): Use binfo_for_vbase. testsuite: * g++.old_deja/g++.other/vbase4.C: New test. From-SVN: r38866
Nathan Sidwell committed -
* invoke.texi: Document that -fcond-mismatch isn't supported for C++. cp: * cp-tree.h (flag_cond_mismatch): Don't declare. * decl2.c (flag_cond_mismatch): Don't define. (lang_f_options): Remove cond-mismatch. (unsupported_options): Add cond-mismatch. From-SVN: r38864
Joseph Myers committed -
* c-lang.c (lang_hooks): Update. (lang_decode_option): Remove. (lang_init_options): Rename c_init_options. * toplev.c (main): Use lang_hooks for lang_init_options and lang_decode_option. * toplev.h (lang_hooks): Add 2 new hooks. * tree.h: Remove lang_init_options and lang_decode_option. * cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option. * cp/decl2.c: Similarly. * cp/lex.c (lang_init_options): Rename cxx_init_options. (lang_hooks): Update. * f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish for consistency. (lang_init_options): Rename ffe_init_options. (lang_hooks): Update. (lang_decode_option): Remove. * java/lang.c (lang_init_options): Rename java_init_options. (lang_decode_option): Rename java_decode_option. (lang_hooks): Update. * objc/objc-act.c (lang_init_options): Rename objc_init_options. (lang_decode_option): Rename objc_decode_option. (lang_hooks): Update. From-SVN: r38856
Neil Booth committed
-
- 09 Jan, 2001 3 commits
-
-
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. (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 -
From-SVN: r38825
Joseph Myers committed
-
- 08 Jan, 2001 5 commits
-
-
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 -
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 -
From-SVN: r38797
Nathan Sidwell committed -
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. From-SVN: r38792
Mark Mitchell committed
-
- 07 Jan, 2001 3 commits
-
-
From-SVN: r38787
Kaveh R. Ghazi committed -
* 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. * 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
-
- 05 Jan, 2001 3 commits
-
-
2001-01-05 Phil Edwards <pme@sources.redhat.com> * cp/lang-options.h: Bring comment in line with reality. * f/lang-options.h: Likewise. * java/lang-options.h: Likewise. * objc/lang-options.h: Likewise. * ch/lang-options.h: Likewise. * f/g77.texi: And update the manual. From-SVN: r38719
Phil Edwards committed -
cp: * parse.y (template_datadef): Check for error_mark_node. testsuite: * g++.old-deja/g++.pt/crash62.C: New test. From-SVN: r38714
Nathan Sidwell committed -
cp: * cp-tree.def (DEFAULT_ARG): Make `x' class. From-SVN: r38710
Nathan Sidwell committed
-
- 04 Jan, 2001 3 commits
-
-
* 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. * 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. (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
-
- 03 Jan, 2001 6 commits
-
-
* 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 -
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 -
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. (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 -
From-SVN: r38642
Mike Stump committed -
* 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
-
- 02 Jan, 2001 5 commits
-
-
* c-common.h (ASM_INPUT_P): New. * c-parse.in (asm): Set it when needed. * c-semantics.c (genrtl_asm_stmt): Test it instead of the existance of an operand. * cp/parse.y (asm): Set ASM_INPUT_P. From-SVN: r38638
Richard Henderson committed -
* tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE for v3 ABI. * typeck.c (cp_truthvalue_conversion): New fn. * cvt.c (ocp_convert): Use it. * cp-tree.h: Lose c-common.c decls. * typeck.c (build_unary_op): Restore old &a.f diagnostic code. * cvt.c (convert_to_void): Use type_unknown_p. From-SVN: r38636
Jason Merrill committed -
From-SVN: r38635
Jason Merrill committed -
* typeck.c (strip_all_pointer_quals): Also strip quals from pointer-to-member types. * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat parse.y as C. * call.c (build_new_method_call): Do evaluate the object parameter when accessing a static member. * typeck.c (build_component_ref): Likewise. From-SVN: r38619
Jason Merrill committed -
* decl.c (cp_missing_noreturn_ok_p): New. (init_decl_processing): Set lang_missing_noreturn_ok_p. From-SVN: r38613
Andreas Jaeger committed
-
- 29 Dec, 2000 5 commits
-
-
From-SVN: r38537
Jakub Jelinek committed -
* class.c (pushclass): Remove #if 0'd code. * cp-tree.h (overload_template_name): Remove. * decl.c (store_bindings): Simplify. (pop_from_top_level): Likewise. * pt.c (overload_template_name): Remove. (instantiate_decl): Don't call push_to_top_level if it's not needed. From-SVN: r38530
Mark Mitchell committed -
From-SVN: r38525
Mark Mitchell committed -
* pt.c (register_local_specialization): Don't return a value. (lookup_template_class): Use move-to-front heuristic when looking up template instantiations. (instantiate_decl): Only push_to_top_level when we're actually going to instantiate the template. From-SVN: r38524
Mark Mitchell committed -
* search.c (binfo_for_vtable): Return least derived class, not most. Handle secondary vtables. From-SVN: r38521
Hans-Peter Nilsson committed
-
- 23 Dec, 2000 1 commit
-
-
* pt.c (more_specialized): Don't optimize len==0. (fn_type_unification): If we're adding the return type, increase len. From-SVN: r38472
Jason Merrill committed
-
- 22 Dec, 2000 1 commit
-
-
From-SVN: r38471
Jason Merrill committed
-