Commit 3a06a610 by Richard Biener Committed by Richard Biener

dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE just generated.

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.

From-SVN: r248093
parent 5f54ae00
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> 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
* config/arm/arm_neon.h (vadd_f16): Use standard arithmetic * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
......
...@@ -30109,8 +30109,9 @@ resolve_variable_value_in_expr (dw_attr_node *a, dw_loc_descr_ref loc) ...@@ -30109,8 +30109,9 @@ resolve_variable_value_in_expr (dw_attr_node *a, dw_loc_descr_ref loc)
break; break;
} }
/* Create DW_TAG_variable that we can refer to. */ /* Create DW_TAG_variable that we can refer to. */
ref = gen_decl_die (decl, NULL_TREE, NULL, gen_decl_die (decl, NULL_TREE, NULL,
lookup_decl_die (current_function_decl)); lookup_decl_die (current_function_decl));
ref = lookup_decl_die (decl);
if (ref) if (ref)
{ {
loc->dw_loc_oprnd1.val_class = dw_val_class_die_ref; loc->dw_loc_oprnd1.val_class = dw_val_class_die_ref;
...@@ -30203,6 +30204,7 @@ note_variable_value_in_expr (dw_die_ref die, dw_loc_descr_ref loc) ...@@ -30203,6 +30204,7 @@ note_variable_value_in_expr (dw_die_ref die, dw_loc_descr_ref loc)
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.die = ref;
loc->dw_loc_oprnd1.v.val_die_ref.external = 0; loc->dw_loc_oprnd1.v.val_die_ref.external = 0;
continue;
} }
if (VAR_P (decl) if (VAR_P (decl)
&& DECL_CONTEXT (decl) && DECL_CONTEXT (decl)
......
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