+2017-05-16 Richard Biener <rguenther@suse.de>
+
+ * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
+ just generated.
+ (note_variable_value_in_expr): If we resolved the decl ref
+ do not push to the stack.
+
2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
* config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
break;
}
/* Create DW_TAG_variable that we can refer to. */
- ref = gen_decl_die (decl, NULL_TREE, NULL,
- lookup_decl_die (current_function_decl));
+ gen_decl_die (decl, NULL_TREE, NULL,
+ lookup_decl_die (current_function_decl));
+ ref = lookup_decl_die (decl);
if (ref)
{
loc->dw_loc_oprnd1.val_class = dw_val_class_die_ref;
loc->dw_loc_oprnd1.val_class = dw_val_class_die_ref;
loc->dw_loc_oprnd1.v.val_die_ref.die = ref;
loc->dw_loc_oprnd1.v.val_die_ref.external = 0;
+ continue;
}
if (VAR_P (decl)
&& DECL_CONTEXT (decl)