From db80e34e82422cfbf8f16d46112c790b9f48373d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 2 Dec 2009 09:39:10 +0100 Subject: g++spec.c (lang_specific_driver): Remove unused saw_verbose_flag variable. * g++spec.c (lang_specific_driver): Remove unused saw_verbose_flag variable. * pt.c (tsubst_pack_expansion): Remove unused first_arg_pack variable. * init.c (build_vec_init): Remove unused size variable. * typeck2.c (check_narrowing): Remove unused was_decl variable. * decl.c (poplevel): Remove unused tmp and real_functionbody variables. (decls_match): Remove unused tree_name variable. (start_decl): Remove unused type variable. * parser.c (cp_parser_type_parameter): Remove unused parameter_list variable. (cp_parser_template_id, cp_parser_explicit_instantiation, cp_parser_declarator): Remove unused token variable. (cp_parser_simple_type_specifier): Remove unused id variable. (cp_parser_parameter_declaration): Remove unused greater_than_is_operator_p variable. (cp_parser_check_declarator_template_parameters): Remove unused member variable. (c_parse_file): Remove unused error_occurred variable. * cp-gimplify.c (cp_gimplify_init_expr): Remove unused slot variable. * typeck.c (cp_build_function_call_vec): Remove unused name variable. * class.c (resolve_address_of_overloaded_function): Remove unused is_reference variable. (build_rtti_vtbl_entries): Remove unused basetype variable. * mangle.c (write_template_param): Remove unused parm_level and parm_type variables. From-SVN: r154899 --- gcc/cp/cp-gimplify.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gcc/cp/cp-gimplify.c') diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index 017c8a9..e0047cf 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -429,17 +429,13 @@ cp_gimplify_init_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p) tree from = TREE_OPERAND (*expr_p, 1); tree to = TREE_OPERAND (*expr_p, 0); tree t; - tree slot = NULL_TREE; /* What about code that pulls out the temp and uses it elsewhere? I think that such code never uses the TARGET_EXPR as an initializer. If I'm wrong, we'll abort because the temp won't have any RTL. In that case, I guess we'll need to replace references somehow. */ if (TREE_CODE (from) == TARGET_EXPR) - { - slot = TARGET_EXPR_SLOT (from); - from = TARGET_EXPR_INITIAL (from); - } + from = TARGET_EXPR_INITIAL (from); /* Look through any COMPOUND_EXPRs, since build_compound_expr pushes them inside the TARGET_EXPR. */ -- cgit v1.1