Check HARD_FRAME_POINTER_REGNUM.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2011 16:38:24 +0000 (16:38 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2011 16:38:24 +0000 (16:38 +0000)
2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx
in Rule 18.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181096 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2cfi.c

index 0bfd95a..4c7bdd5 100644 (file)
@@ -1,3 +1,9 @@
+2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
+       HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx
+       in Rule 18.
+
 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
 
        * config/i386/i386.c (ix86_expand_builtin): If gather mask
index 4f44c77..69e6f21 100644 (file)
@@ -1757,7 +1757,8 @@ dwarf2out_frame_debug_expr (rtx expr)
             regiser.  */
           if (fde
               && fde->stack_realign
-              && src == hard_frame_pointer_rtx)
+             && REG_P (src)
+             && REGNO (src) == HARD_FRAME_POINTER_REGNUM)
            {
              gcc_assert (cur_cfa->reg != dw_frame_pointer_regnum);
              cur_trace->cfa_store.offset = 0;