summaryrefslogtreecommitdiffstats
path: root/gcc/cp
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.in: Update.neil2003-03-152-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-common.h (cb_register_builtins): Rename c_cpp_builtins. * c-lex.c (init_c_lex): Register builtins hook is dead. * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U. (c_common_decode_option): Don't call cpp_handle_option. Handle -A, -D and -U. (handle_deferred_opts): Simplify. (finish_options): Define builtins and command line macros. * c-ppoutput.c (init_pp_output): Register builtins hook is dead. * cppinit.c: Don't include intl.h. (init_builtins): Rename cpp_init_builtins. No hook to call. (init_library): Don't need to sort options. (cpp_create_reader): Don't set pending. (cpp_destroy): Don't free pending. (struct pending_option, cl_directive_handler, struct cpp_pending, APPEND, free_chain, new_pending_directive, parse_option, opt_comp, cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option, cl_options, cpp_handle_option): Remove. * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option, cpp_finish_options): Remove. (cpp_init_builtins): New. * fix-header.c (read_scan_file): Update to handle -D. Fix handling of -I. Replace call to cpp_finish_options. cp: * Make-lang.in: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64398 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/6440lerdsuwa2003-03-152-0/+83
| | | | | | | | | | | | | | * pt.c (maybe_process_partial_specialization): Handle member class template when enclosing class template is explicit specialized. (most_general_template): Stop looking when DECL is already specialized. * g++.dg/template/spec7.C: New test. * g++.dg/template/spec8.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64395 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9420jason2003-03-133-7/+8
| | | | | | | | * search.c (lookup_conversions): Call complete_type here. * call.c (implicit_conversion): Not here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64332 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl2.c (do_nonmember_using_decl): Correct handling ofmmitchel2003-03-132-0/+10
| | | | | | | | | | simultaneous type/non-type bindings. * g++.dg/parse/namespace9.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64323 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typo in ChangeLogmmitchel2003-03-131-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64321 138bc75d-0d04-0410-961f-82ee72b054a4
* * call.c (initialize_reference): Remove bogus assertion.mmitchel2003-03-133-40/+6
| | | | | | | | | | * decl.c (build_ptrmemfunc_type): Revert change of 2003-03-09. * g++.dg/init/ref5.C: New test. * g++.dg/parse/ptrmem1.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64316 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/7050jason2003-03-122-1/+7
| | | | | | | | | | * expr.c (store_expr): Don't attempt to store void-typed trees, just evaluate them for side effects. * cp/expr.c (cxx_expand_expr): Return const0_rtx for throw expressions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64268 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix PR number in log message.mmitchel2003-03-121-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64221 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9336mmitchel2003-03-122-10/+14
| | | | | | | | | | | * g++.dg/parse/namespace8.C: New test. PR c++/9336 * decl2.c (do_nonmember_using_decl): Do not call duplicate decls to merge old and new declarations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64216 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.1: Remove.aoliva2003-03-123-5/+21
| | | | | | | | | | * Make-lang.in (c++.generated-manpages): Build cp/g++.1. (cp/g++.1): Build it from scratch in the build tree. (c++.install-man): Depend on it. Install it from the build tree. (c++.mostlyclean): Clean it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64214 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9924mmitchel2003-03-112-12/+23
| | | | | | | | | | | | * g++.dg/overload/builtin2.C: New test. 2003-03-11 Mark Mitchell <mark@codesourcery.com> PR c++/9924 * decl2.c (do_nonmember_using_decl): Ignore anticipated builtins. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64197 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9820jason2003-03-112-1/+11
| | | | | | | | * search.c (lookup_member): Fix handling of functions in a class being defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64193 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/8700mmitchel2003-03-115-83/+132
| | | | | | | | | | | | | | | | | | | | | | * call.c (convert_class_to_reference): Adjust usage of splice_viable. (any_viable): Remove. (splice_viable): Combine with any_viable. (print_z_candidates): Avoid printing duplicates. (build_user_type_conversion_1): Adjust usage of splice_viable. (build_new_function_call): Likewise. (build_operator_new_call): Likewise. (build_object_call): Likewise. (build_conditional_expr): Likewise. (build_new_op): Likewise. (build_new_method_call): Likewise. (joust): Remove spurious comment. * cp-tree.h (DECL_FRIENDLIST): Correct documentation. * decl2.c (arg_assoc_class): Simplify. * friend.c (add_friend): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64173 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/8660jason2003-03-112-0/+16
| | | | | | | | * decl2.c (check_classfn): A member template only matches a member template. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64166 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Update.neil2003-03-113-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * c-common.c: Don't include real.h or except.h. (REGISTER_PREFIX): Remove. (builtin_define_std, builtin_define_with_value, builtin_define_with_int_value, builtin_define_with_hex_fp_value, builtin_define_type_max, builtin_define_type_precision, builtin_define_float_constants): Move to c-cppbuiltin.c. (c_stddef_cpp_builtins): New. * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New. * c-cppbuiltin.c: New, extracted from c-common.c. (define__GNUC__): New. * cppspec.c (lang_specific_driver): Remove support of -no-gcc. * gcc.c: Remove support of %v1, %v2 and %v3 specs. (cpp_unique_options): Don't support no-gcc. (do_spec_1): Remove support of version specs. * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3. * doc/passes.texi: Update. * doc/tm.texi: Update. cp: * Make-lang.in (CXX_C_OBJS): Update. * lang-specs.h: Don't define __GNUG__ here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64162 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.old-deja/g++.benjamin/16077.C: Adjust warnings.mmitchel2003-03-115-144/+192
| | | | | | | | | | | | | | | | | | | * g++.old-deja/g++.warn/impint2.C: Likewise. * call.c (perform_overload_resolution): New function. (build_new_function_call): Use it. (build_operator_new_call): Likewise. (add_candidates): Add explicit_targs and template_only parameters. (build_new_op): Adjust accordingly. * cp-tree.h (build_operator_new_call): New function. (build_function_call_real): Remove. (build_function_call_maybe): Likewise. * init.c (build_new_1): Use build_operator_new_call. * typeck.c (build_function_call_real): Rename to ... (build_function_call): ... this. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64159 138bc75d-0d04-0410-961f-82ee72b054a4
* PR/9394dpatel2003-03-102-0/+6
| | | | | | | | | | | | | | | | | | | | * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove. (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove. * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add. (DEFAULT_WORD_SWITCH_TAKES_ARG): Add. * cppspec.c (DEFAULT_SWTICH_TAKES_ARG): Remove. (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove. cp * g++spec.c (lang_specific_driver): Use DEFAULT_WORD_SWITCH_TAKES_ARG. testsuite * g++.dg/cpp/c++_cmd_1.C: New test. * g++.dg/cpp/c++_cmd_1.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64144 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9798jason2003-03-102-5/+9
| | | | | | | * decl.c (push_using_directive): Push before recursing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64133 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9868jason2003-03-103-3/+17
| | | | | | | | * call.c (resolve_scoped_fn_name): Handle the case of a function pointer member. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64122 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9373mmitchel2003-03-102-2/+12
| | | | | | | | | | | * g++.dg/opt/ptrmem2.C: New test. PR c++/9373 * cp-lang.c (cxx_get_alias_set): Use alias set zero for pointers to member functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64070 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/8534mmitchel2003-03-102-0/+44
| | | | | | | | | | | * decl.c (build_ptrmemfunc_type): Do not allow default arugments in pointer-to-member-function types. PR c++/8534 * g++.dg/opt/ptrmem1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64066 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (cplus_expand_constant): Use C90 prototype style.gdr2003-03-102-7/+7
| | | | | | | (cxx_expand_expr): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64064 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9970lerdsuwa2003-03-092-1/+10
| | | | | | | | | | * decl.c (duplicate_decls): Only copy DECL_THUNKS for virtual functions. * g++.dg/lookup/friend1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64029 138bc75d-0d04-0410-961f-82ee72b054a4
* * lang-specs.h (c++-header): Change .pch to .gch.geoffk2003-03-092-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64013 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.h (c_common_init, c_common_post_options): Update.neil2003-03-083-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-objc-common.c (c_objc_common_init): Update for new prototype. * c-opts.c (saved_lineno): New. (c_common_post_options, c_common_init): Update prototypes, move call to cpp_read_main_file from latter to former. * c-tree.h (c_ojbc_common_init): Update. * langhooks-def.h (lhd_post_options): New. (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update. * langhooks.c (lhd_post_options): New. * langhooks.h (struct lang_hooks): Update post_options and init hooks. * toplev.c (no_backend): New. (process_options): Call post_options hook and set main_input_filename and input_filename here. (lang_dependent_init, do_compile): post_options hook moved to process_options. * objc/objc-act.c (objc_init): Update prototype. * objc/objc-act.h (objc_init): Update prototype. ada: * misc.c (gnat_init): Update for new prototype. cp: * cp-tree.h (cxx_init): Update prototype. * lex.c (cxx_init): Similarly. f: * com.c (ffe_init): Update prototype; move code to ffe_post_options. (ffe_post_options): New. java: * lang.c (java_init): Update prototype, move code to java_post_options. (java_post_options): Similarly. treelang: * tree1.c (in_fname): Fix type. (treelang_init): Update prototype and use of in_fname. * treelang.h (in_fname): Fix type. * treetree.c (tree_code_if_start, tree_code_if_else, tree_code_if_end, tree_code_create_function_prototype, tree_code_create_function_initial, tree_code_create_funciton_wrapup, tree_code_create_variable, tree_code_output_expression_statement) : Fix prototypes and use of filenames. * treetree.h: Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64001 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9823mmitchel2003-03-084-13/+13
| | | | | | | | | | | | | | | * cp-tree.h (begin_mem_initializers): Remove. * parser.c (cp_parser_mem_initializer_list): Inline it here. Do not call finish_mem_initializers if not in a constructor. (cp_parser_class_head): Fix typo in error message. * semantics.c (begin_mem_initializers): Remove. * testsuite/g++.dg/parser/constructor1.C: New test. PR c++/9823 * g++.dg/parser/constructor1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63999 138bc75d-0d04-0410-961f-82ee72b054a4
* Initialize argsmmitchel2003-03-081-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63981 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9809mmitchel2003-03-086-104/+193
| | | | | | | | | | | | | | | | | | | * g++.dg/parse/builtin1.C: New test. PR c++/9982 * g++.dg/abi/cookie1.C: New test. * g++.dg/abi/cookie2.C: Likewise. PR c++/9524 * g++.dg/parse/field1.C: New test. PR c++/9912 * g++.dg/parse/class1.C: New test. * g++.dg/parse/namespace7.C: Likewise. * g++.old-deja/g++.other/decl5.C: Remove XFAILs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63977 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typommitchel2003-03-081-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63965 138bc75d-0d04-0410-961f-82ee72b054a4
* * call.c (reference_binding): Remove REF_IS_VAR parameter.mmitchel2003-03-075-46/+99
| | | | | | | | | | | | | | | | | | (implicit_conversion): Adjust call to reference_binding. (make_temporary_var_for_ref_to_type): Add TYPE parameter. (initialize_reference): Adjust handling for references bound to rvalues. * cp-tree.h (make_temporary_var_for_ref_to_temp): Change prototype. (real_non_cast_lvalue_p): New function. * cvt.c (build_up_reference): Adjust use of make_temporary_var_for_ref_to_temp. * tree.c (real_non_cast_lvalue_p): New function. * g++.dg/init/ref4.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63949 138bc75d-0d04-0410-961f-82ee72b054a4
* * except.c (init_exception_processing): Use C90 prototype style.gdr2003-03-072-73/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cp_protect_cleanup_actions): Likewise. (prepare_eh_type): Likewise. (build_eh_type_type): Likewise. (build_exc_ptr): Likewise. (do_begin_catch): Likewise. (dtor_nothrow): Likewise. (do_end_catch): Likewise. (push_eh_cleanup): Likewise. (decl_is_java_type): Likewise. (choose_personality_routine): Likewise. (initialize_handler_parm): Likewise. (expand_start_catch_block): Likewise. (expand_end_catch_block): Likewise. (begin_eh_spec_block): Likewise. (finish_eh_spec_block): Likewise. (do_allocate_exception): Likewise. (do_free_exception): Likewise. (wrap_cleanups_r): Likewise. (stabilize_throw_expr): Likewise. (build_throw): Likewise. (complete_ptr_ref_or_void_ptr_p): Likewise. (is_admissible_throw_operand): Likewise. (nothrow_libfn_p): Likewise. (can_convert_eh): Likewise. (check_handlers_1): Likewise. (check_handlers): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63935 138bc75d-0d04-0410-961f-82ee72b054a4
* * rtti.c (get_tinfo_decl): Use build_address/build_nop.mmitchel2003-03-071-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63931 138bc75d-0d04-0410-961f-82ee72b054a4
* * call.c (merge_conversion_sequences): New function.mmitchel2003-03-074-34/+98
| | | | | | | | | | | | | | (build_conv): Set ICS_USER_FLAG for USER_CONVs. (convert_class_to_reference): Correct handling of second standard conversion sequence in a user-defined conversion sequence. (build_user_type_conversion_1): Use merge_conversion_sequences. * cp-tree.def: Add comments for CONV nodes. * g++.dg/init/ref3.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63930 138bc75d-0d04-0410-961f-82ee72b054a4
* * error.c (init_error): Use C90 prototype style.gdr2003-03-072-222/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (dump_scope): Likewise. (dump_qualifiers): Likewise. (dump_template_argument): Likewise. (dump_template_argument_list): Likewise. (dump_template_parameter): Likewise. (dump_template_bindings): Likewise. (dump_type): Likewise. (dump_typename): Likewise. (class_key_or_enum): Likewise. (dump_aggr_type): Likewise. (dump_type_prefix): Likewise. (dump_type_suffix): Likewise. (dump_global_iord): Likewise. (dump_simple_decl): Likewise. (dump_decl): Likewise. (dump_template_decl): Likewise. (dump_function_decl): Likewise. (dump_parameters): Likewise. (dump_exception_spec): Likewise. (dump_function_name): Likewise. (dump_template_parms): Likewise. (dump_char): Likewise. (dump_expr_list): Likewise. (dump_expr): Likewise. (dump_binary_op): Likewise. (dump_unary_op): Likewise. (type_as_string): Likewise. (expr_as_string): Likewise. (decl_as_string): Likewise. (context_as_string): Likewise. (lang_decl_name): Likewise. (cp_file_of): Likewise. (cp_line_of): Likewise. (decl_to_string): Likewise. (expr_to_string): Likewise. (fndecl_to_string): Likewise. (code_to_string): Likewise. (language_to_string): Likewise. (parm_to_string): Likewise. (op_to_string): Likewise. (type_to_string): Likewise. (assop_to_string): Likewise. (args_to_string): Likewise. (cv_to_string): Likewise. (cxx_print_error_function): Likewise. (cp_diagnostic_starter): Likewise. (cp_diagnostic_finalizer): Likewise. (cp_print_error_function): Likewise. (function_category): Likewise. (print_instantiation_full_context): Likewise. (print_instantiation_partial_context): Likewise. (maybe_print_instantiation_context): Likewise. (print_instantiation_context): Likewise. (cp_printer): Likewise. (print_integer): Likewise. (print_non_consecutive_character): Likewise. (locate_error): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63928 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typo in previous patchmmitchel2003-03-061-2/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63912 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9965mmitchel2003-03-062-22/+28
| | | | | | | | | | | | * call.c (reference_binding): Add ref_is_var parameter. (implicit_conversion): Adjust call to reference_binding. (initialize_reference): Likewise. PR c++/9965 * g++.dg/init/ref2.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63909 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9400mmitchel2003-03-062-1/+7
| | | | | | | | | | | * decl.c (pushdecl): Don't check for shadowing of DECL_ARTIFICIAL PARM_DECLs. PR c++/9400 * g++.dg/warn/Wshadow-2.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63904 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9791mmitchel2003-03-062-5/+18
| | | | | | | | | | * class.c (get_basefndecls): Use lookup_fnfields_1. PR c++/9791 * g++.dg/warn/Woverloaded-1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63899 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9188lerdsuwa2003-03-062-2/+9
| | | | | | | | | * parser.c (cp_parser_type_parameter): Remove redundant `expect' in error message. (cp_parser_single_declaration): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63891 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9440jason2003-03-052-7/+9
| | | | | | | | * call.c (build_conditional_expr): Use convert rather than an explicit NOP_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63872 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c (cp_binding_level): Add static_decls varray member.austern2003-03-052-14/+33
| | | | | | | | | | | | | (add_decl_to_level): Add static/inline namespace scope declarations to static_decls array. (wrapup_global_for_namespace): Pass static_decls only, instead of all decls, to wrapup_global_declarations/check_global_declarations. (push_namespace): Initialize static_decls for ordinary namespaces. (cxx_init_decl_processing): Initialize static_decls for global namespace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63866 138bc75d-0d04-0410-961f-82ee72b054a4
* * class.c (end_of_class): Correct thinko.mmitchel2003-03-052-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63829 138bc75d-0d04-0410-961f-82ee72b054a4
* * config-lang.in: Replace ${libstdcxx_version} by its value.neroden2003-03-052-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63827 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-tree.h (cxx_saved_binding): Declare.gdr2003-03-043-23/+56
| | | | | | | | | | | | | (struct saved_scope): Adjust type of field 'old_binding'. * decl.c (cxx_saved_binding_make): New macro. (struct cxx_saved_binding): Define. (store_bindings): Adjust prototype. Use cxx_saved_binding to save C++ bindings. (maybe_push_to_top_level): Adjust local variable type. (pop_from_top_level): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63810 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in (c++.tags): New target.tromey2003-03-042-0/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63805 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in: Update.neil2003-03-042-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63774 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c (finish_enum): Do set the type in a template. Simplify.jason2003-03-043-57/+41
| | | | | | | * pt.c (tsubst_enum, tsubst_copy): Revert last patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63754 138bc75d-0d04-0410-961f-82ee72b054a4
* tabifyjason2003-03-031-4/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63740 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9878mmitchel2003-03-038-336/+452
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * call.c (convert_class_to_reference): Correct conversion sequences. (reference_binding): Add ref_bound_directly_to_rvalue_p parameter. (implicit_conversion): Adjust call to reference_binding. (add_candidate): Change type of candidates parameter. (add_function_candidate): Likewise. (add_conv_candidate): Likewise. (build_builtin_candidate): Likewise. (add_builtin_candidate): Likewise. (add_builtin_candidates): Likewise. (add_template_candidate_real): Likewise. (add_template_candidate): Likewise. (add_template_conv_candidate): Likewise. (build_user_type_conversion_1): Adjust accordingly. (build_object_call): Likewise. (build_conditional_expr): Likewise. (add_candidates): Likewise. (build_new_op): Likewise. (convert_like_real): Use USER_CONV_CAND. Use build_nop. (build_new_method_call): Adjust calls to add_function_candidate. (make_temporary_var_for_ref_to_temp): New function. (initialize_reference): Add decl parameter. * class.c (build_rtti_vtbl_entries): Use build_address and build_nop. * cp-tree.h (initialize_reference): Change prototype. (make_temporary_var_for_ref_to_temp): New function. (build_type_conversion): Change prototype. (build_address): New function. (build_nop): Likewise. * cvt.c (cp_convert_to_pointer): Adjust call to build_type_conversion. Avoid indicating redundant NOP_EXPRs. Use build_nop. (convert_to_pointer_force): Use build_nop. (build_up_reference): Use make_temporary_var_for_ref_to_temp. (convert_to_reference): Adjust call to build_type_conversion. (ocp_convert): Likewise. (build_type_conversion): Remove for_sure parameter. * decl.c (grok_reference_init): Use initialize_reference. * typeck.c (build_address): New function. (build_nop): Likewise. (build_unary_op): Use them. (build_ptrmemfunc): Tidy slightly. (convert_for_initialization): Adjust call to initialize_reference. * typeck2.c (store_init_value): Remove #if 0'd code. PR c++/9878 * g++.dg/init/ref1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63735 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree-inline.c (find_builtin_longjmp_call): Save and restorejason2003-03-033-3/+12
| | | | | | | | | | | | | | | | | lineno and input_filename. (find_alloca_call): Likewise. (inlinable_function_p): Run the langhook earlier. * calls.c (compute_argument_addresses): Give the new MEMs a minimum alignment of PARM_BOUNDARY. cp/ * decl.c (start_function): Clear DECL_NUM_STMTS. * class.c (get_vtable_decl): Use vtbl_type_node. (build_primary_vtable): Check for it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63733 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud