Commit de2c775d by Alexandre Oliva Committed by Alexandre Oliva

var-tracking.c (vt_add_function_parameter): Use a preserved VALUE for the MEM…

var-tracking.c (vt_add_function_parameter): Use a preserved VALUE for the MEM address of an incoming parameter.

* var-tracking.c (vt_add_function_parameter): Use a preserved
VALUE for the MEM address of an incoming parameter.

From-SVN: r188998
parent 2ef1bce6
2012-06-26 Alexandre Oliva <aoliva@redhat.com>
* var-tracking.c (vt_add_function_parameter): Use a preserved
VALUE for the MEM address of an incoming parameter.
2012-06-26 Sterling Augustine <saugustine@google.com> 2012-06-26 Sterling Augustine <saugustine@google.com>
* dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator. * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
......
...@@ -9454,6 +9454,17 @@ vt_add_function_parameter (tree parm) ...@@ -9454,6 +9454,17 @@ vt_add_function_parameter (tree parm)
VAR_INIT_STATUS_INITIALIZED, NULL, INSERT); VAR_INIT_STATUS_INITIALIZED, NULL, INSERT);
dv = dv_from_value (val->val_rtx); dv = dv_from_value (val->val_rtx);
} }
if (MEM_P (incoming))
{
val = cselib_lookup_from_insn (XEXP (incoming, 0), mode, true,
VOIDmode, get_insns ());
if (val)
{
preserve_value (val);
incoming = replace_equiv_address_nv (incoming, val->val_rtx);
}
}
} }
if (REG_P (incoming)) if (REG_P (incoming))
......
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