re PR debug/57232 (wcstol.c:213:1: internal compiler error)

PR debug/57232
* var-tracking.c (vt_initialize): Apply the same condition to
preserve the CFA base value.

From-SVN: r208219
This commit is contained in:
Alexandre Oliva 2014-02-28 12:45:36 +00:00 committed by Alexandre Oliva
parent 9910c53c49
commit 2e08491710
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-02-28 Alexandre Oliva <aoliva@redhat.com>
PR debug/57232
* var-tracking.c (vt_initialize): Apply the same condition to
preserve the CFA base value.
2014-02-28 Joey Ye <joey.ye@arm.com>
PR target/PR60169

View File

@ -9924,7 +9924,8 @@ vt_initialize (void)
val = cselib_lookup_from_insn (reg, GET_MODE (reg), 1,
VOIDmode, get_insns ());
preserve_value (val);
cselib_preserve_cfa_base_value (val, REGNO (reg));
if (reg != hard_frame_pointer_rtx && fixed_regs[REGNO (reg)])
cselib_preserve_cfa_base_value (val, REGNO (reg));
expr = plus_constant (GET_MODE (stack_pointer_rtx),
stack_pointer_rtx, -ofst);
cselib_add_permanent_equiv (val, expr, get_insns ());