From: aj Date: Mon, 20 May 2002 14:28:01 +0000 (+0000) Subject: * init.c (build_default_init): Remove unused variable. X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=2e203e68fcb89ce507d4ff0443d85a9ad54c55df;ds=sidebyside * init.c (build_default_init): Remove unused variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53660 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0a48612777b..09f038c0a08 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2002-05-20 Andreas Jaeger + + * init.c (build_default_init): Remove unused variable. + 2002-05-20 Alexandre Oliva * call.c (any_strictly_viable): New. @@ -148,11 +152,11 @@ PR c++/6486 * method.c (do_build_copy_constructor): Avoid building cv-qualified reference types. - + 2002-04-29 Nathan Sidwell PR c++/5719 - * decl.c (grok_op_properties): Assignment ops don't have to return + * decl.c (grok_op_properties): Assignment ops don't have to return by value. operator% should. 2002-04-28 Franz Sirl @@ -304,7 +308,7 @@ (finish_init_stmts): Set STMT_EXPR_NO_SCOPE. * semantics.c (begin_gobal_stmt_expr): Adjust call to expand_start_stmt_expr. - + 2002-04-15 Mark Mitchell * decl.c (register_dtor_fn): Pass the address of dso_handle, not @@ -355,11 +359,11 @@ * typeck.c (type_after_usual_arithmetic_conversions): If two types have the same variant, return immediately. - When two floating-point operands are the same precision: + When two floating-point operands are the same precision: convert to float if one of the operands is float; if neither operand is one of the standard types, return the type of the first operand. - + 2002-04-10 Nathan Sidwell PR c++/5507 @@ -415,15 +419,15 @@ * init.c (build_member_call): Use build_scoped_ref. (resolve_offset_ref): Likewise. * call.c (build_scoped_method_call): Likewise. - * tree.c (maybe_dummy_object): Kludge around current_class_type being + * tree.c (maybe_dummy_object): Kludge around current_class_type being wrong. * typeck2.c (build_scoped_ref): Return the binfo via binfo_p parm. * cp-tree.h: Adjust. - + * init.c (push_base_cleanups): Just use build_scoped_method_call. PR c++/6179 - * method.c (implicitly_declare_fn): Pass unqualified type to + * method.c (implicitly_declare_fn): Pass unqualified type to synthesize_exception_spec. 2002-04-04 Neil Booth @@ -438,7 +442,7 @@ * semantics.c (finish_eh_cleanup): New fn. * cp-tree.h: Add prototype. - * init.c (perform_member_init, expand_cleanup_for_base): Use + * init.c (perform_member_init, expand_cleanup_for_base): Use finish_eh_cleanup. * cp-tree.def (SUBOBJECT, CTOR_STMT): Remove. * cp-tree.h: Remove references. @@ -581,7 +585,7 @@ PR c++/4884 * call.c (build_op_delete_call): Allow for the fact the placement may be a COMPOUND_EXPR. - + 2002-03-27 Neil Booth * cp-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine. @@ -643,7 +647,7 @@ PR C++/3656 * semantics.c (finish_base_specifier): Handle erronous base - classes. + classes. 2002-03-22 Zack Weinberg @@ -908,7 +912,7 @@ * except.c: Don't include decl.h or obstack.h. Do include tree-inline.h. (build_throw): Destroy temporaries from the thrown - expression before calling __cxa_throw. Construct a thrown + expression before calling __cxa_throw. Construct a thrown temporary directly into the exception object. (stabilize_throw_expr): New function. (wrap_cleanups_r): New function. @@ -939,7 +943,7 @@ the C front end but not used, or used only to permit the compiler to link. -2002-02-24 Craig Rodrigues +2002-02-24 Craig Rodrigues PR c++/4093 * cp-tree.h (SET_BINFO_MARKED): Cast false part of condition @@ -993,7 +997,7 @@ 2002-02-19 Jason Merrill - ABI change: Mangle `void (A::*)() const' as + ABI change: Mangle `void (A::*)() const' as M1AKFvvE, not MK1AFvvE. * mangle.c (write_function_type): Write cv-quals for member function type here. @@ -1068,14 +1072,14 @@ (coerce_template_template_parms, convert_template_argument, coerce_template_parms, maybe_get_template_decl_from_type_decl, lookup_template_class, tsubst_friend_function, tsubst_friend_class, - instantiate_class_template, tsubst_template_arg_vector, - tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument, + instantiate_class_template, tsubst_template_arg_vector, + tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument, tsubst_decl, tsubst_arg_types, tsubst_function_type, - tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr, + tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr, instantiate_template, fn_type_unification, - resolve_overloaded_unification, verify_class_unification, - unify, get_bindings_real, do_type_instantiation, - regenerate_decl_from_template, instantiate_decl, + resolve_overloaded_unification, verify_class_unification, + unify, get_bindings_real, do_type_instantiation, + regenerate_decl_from_template, instantiate_decl, tsubst_initializer_list, tsubst_enum, get_mostly_instantiated_function_type, invalid_nontype_parm_type_p): Likewise. @@ -1136,7 +1140,7 @@ 2002-02-01 Jason Merrill PR c++/4872 - * decl.c (finish_function): Warn about a non-void function with + * decl.c (finish_function): Warn about a non-void function with no return statement and no abnormal exit. * cp-tree.h (struct cp_language_function): Add returns_abnormally. (current_function_returns_abnormally): New macro. diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 3ac91da9fe7..526d68f390b 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -213,8 +213,6 @@ static tree build_default_init (type) tree type; { - tree init = NULL_TREE; - if (TYPE_NEEDS_CONSTRUCTING (type)) /* Other code will handle running the default constructor. We can't do anything with a CONSTRUCTOR for arrays here, as that would imply