]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR debug/57232 (wcstol.c:213:1: internal compiler error)
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 28 Feb 2014 12:45:36 +0000 (12:45 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 28 Feb 2014 12:45:36 +0000 (12:45 +0000)
PR debug/57232
* var-tracking.c (vt_initialize): Apply the same condition to
preserve the CFA base value.

From-SVN: r208219

gcc/ChangeLog
gcc/var-tracking.c

index c0304cf7539ac6c74fdccbcbce201855fe014e82..51c270614de9fe69d134b48814a18de6dc117787 100644 (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
index c5ce1dd17b46912bba9461d325ea2425baf3b489..65d82854c0a433c5abbe0e5409852a0631041933 100644 (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 ());