mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
2ef1bce664
commit
de2c775d66
|
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
* dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
|
||||
|
|
|
|||
|
|
@ -9454,6 +9454,17 @@ vt_add_function_parameter (tree parm)
|
|||
VAR_INIT_STATUS_INITIALIZED, NULL, INSERT);
|
||||
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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue