Commit 5a7929c8 by Aldy Hernandez Committed by Aldy Hernandez

* dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.

From-SVN: r224189
parent e67d1102
2015-06-06 Aldy Hernandez <aldyh@redhat.com>
* dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
2015-06-06 Richard Sandiford <richard.sandiford@arm.com> 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
* emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c, * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
......
...@@ -19818,7 +19818,7 @@ static void ...@@ -19818,7 +19818,7 @@ static void
gen_lexical_block_die (tree stmt, dw_die_ref context_die) gen_lexical_block_die (tree stmt, dw_die_ref context_die)
{ {
dw_die_ref old_die = BLOCK_DIE (stmt); dw_die_ref old_die = BLOCK_DIE (stmt);
dw_die_ref stmt_die; dw_die_ref stmt_die = NULL;
if (!old_die) if (!old_die)
{ {
stmt_die = new_die (DW_TAG_lexical_block, context_die, stmt); stmt_die = new_die (DW_TAG_lexical_block, context_die, stmt);
...@@ -19859,13 +19859,13 @@ gen_lexical_block_die (tree stmt, dw_die_ref context_die) ...@@ -19859,13 +19859,13 @@ gen_lexical_block_die (tree stmt, dw_die_ref context_die)
if (old_die) if (old_die)
stmt_die = old_die; stmt_die = old_die;
if (!early_dwarf) /* A non abstract block whose blocks have already been reordered
should have the instruction range for this block. If so, set the
high/low attributes. */
if (!early_dwarf && !BLOCK_ABSTRACT (stmt) && TREE_ASM_WRITTEN (stmt))
{ {
/* A non abstract block whose blocks have already been reordered gcc_assert (stmt_die);
should have the instruction range for this block. If so, set the add_high_low_attributes (stmt, stmt_die);
high/low attributes. */
if (! BLOCK_ABSTRACT (stmt) && TREE_ASM_WRITTEN (stmt))
add_high_low_attributes (stmt, stmt_die);
} }
decls_for_scope (stmt, stmt_die); decls_for_scope (stmt, stmt_die);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment