Commit 2155f963 by Jakub Jelinek Committed by Jakub Jelinek

var-tracking.c (vt_expand_loc_callback): Don't run cselib_expand_value_rtx_cb in dummy mode if...

	* var-tracking.c (vt_expand_loc_callback): Don't run
	cselib_expand_value_rtx_cb in dummy mode if
	cselib_dummy_expand_value_rtx_cb returned false.

From-SVN: r157764
parent e80691a0
2010-03-26 Jakub Jelinek <jakub@redhat.com> 2010-03-26 Jakub Jelinek <jakub@redhat.com>
* var-tracking.c (vt_expand_loc_callback): Don't run
cselib_expand_value_rtx_cb in dummy mode if
cselib_dummy_expand_value_rtx_cb returned false.
* var-tracking.c (emit_note_insn_var_location): For one part * var-tracking.c (emit_note_insn_var_location): For one part
notes with offset 0, don't add EXPR_LIST around the location. notes with offset 0, don't add EXPR_LIST around the location.
* dwarf2out.c (loc_descriptor, dw_loc_list_1, * dwarf2out.c (loc_descriptor, dw_loc_list_1,
......
...@@ -6860,14 +6860,13 @@ vt_expand_loc_callback (rtx x, bitmap regs, int max_depth, void *data) ...@@ -6860,14 +6860,13 @@ vt_expand_loc_callback (rtx x, bitmap regs, int max_depth, void *data)
result = pc_rtx; result = pc_rtx;
break; break;
} }
else }
{ else
result = cselib_expand_value_rtx_cb (loc->loc, regs, max_depth, {
vt_expand_loc_callback, result = cselib_expand_value_rtx_cb (loc->loc, regs, max_depth,
data); vt_expand_loc_callback, data);
if (result) if (result)
break; break;
}
} }
if (dummy && (result || var->var_part[0].cur_loc)) if (dummy && (result || var->var_part[0].cur_loc))
var->cur_loc_changed = true; var->cur_loc_changed = true;
......
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