decl.c (check_initializer): Remove dead code.
2014-03-07 Paolo Carlini <paolo.carlini@oracle.com> * decl.c (check_initializer): Remove dead code. From-SVN: r208402
This commit is contained in:
parent
a6c9ab4e19
commit
bc65bdd5b4
|
@ -1,3 +1,7 @@
|
||||||
|
2014-03-07 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
* decl.c (check_initializer): Remove dead code.
|
||||||
|
|
||||||
2014-03-06 Marek Polacek <polacek@redhat.com>
|
2014-03-06 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
PR c/60197
|
PR c/60197
|
||||||
|
|
|
@ -5603,7 +5603,6 @@ check_initializer (tree decl, tree init, int flags, vec<tree, va_gc> **cleanups)
|
||||||
{
|
{
|
||||||
tree type = TREE_TYPE (decl);
|
tree type = TREE_TYPE (decl);
|
||||||
tree init_code = NULL;
|
tree init_code = NULL;
|
||||||
tree extra_init = NULL_TREE;
|
|
||||||
tree core_type;
|
tree core_type;
|
||||||
|
|
||||||
/* Things that are going to be initialized need to have complete
|
/* Things that are going to be initialized need to have complete
|
||||||
|
@ -5799,9 +5798,6 @@ check_initializer (tree decl, tree init, int flags, vec<tree, va_gc> **cleanups)
|
||||||
if (init && init != error_mark_node)
|
if (init && init != error_mark_node)
|
||||||
init_code = build2 (INIT_EXPR, type, decl, init);
|
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))
|
if (init_code && DECL_IN_AGGR_P (decl))
|
||||||
{
|
{
|
||||||
static int explained = 0;
|
static int explained = 0;
|
||||||
|
|
Loading…
Reference in New Issue