From: Paolo Carlini Date: Fri, 7 Mar 2014 14:19:53 +0000 (+0000) Subject: decl.c (check_initializer): Remove dead code. X-Git-Tag: releases/gcc-4.9.0~542 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc65bdd5b48902d7d544ef88f6ab96158e6e8064;p=thirdparty%2Fgcc.git decl.c (check_initializer): Remove dead code. 2014-03-07 Paolo Carlini * decl.c (check_initializer): Remove dead code. From-SVN: r208402 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4aa9c2b75118..3c288c09efa5 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2014-03-07 Paolo Carlini + + * decl.c (check_initializer): Remove dead code. + 2014-03-06 Marek Polacek PR c/60197 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index db86d9727839..cd2cc9cfdd70 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -5603,7 +5603,6 @@ check_initializer (tree decl, tree init, int flags, vec **cleanups) { tree type = TREE_TYPE (decl); tree init_code = NULL; - tree extra_init = NULL_TREE; tree core_type; /* Things that are going to be initialized need to have complete @@ -5799,9 +5798,6 @@ check_initializer (tree decl, tree init, int flags, vec **cleanups) if (init && init != error_mark_node) init_code = build2 (INIT_EXPR, type, decl, init); - if (extra_init) - init_code = add_stmt_to_compound (extra_init, init_code); - if (init_code && DECL_IN_AGGR_P (decl)) { static int explained = 0;