summaryrefslogtreecommitdiff
path: root/gcc/dwarf2cfi.c
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-07 16:38:24 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-07 16:38:24 +0000
commit2013c33bb0cf9ef1fb16cf00a39c7a52c3b589f9 (patch)
treec57c77e82806a1d96edc85b6b2588121db20aa54 /gcc/dwarf2cfi.c
parent7336fab9ce205d0f05d409afa589342da06052dc (diff)
downloadgcc-2013c33bb0cf9ef1fb16cf00a39c7a52c3b589f9.tar.gz
Check HARD_FRAME_POINTER_REGNUM.
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
Diffstat (limited to 'gcc/dwarf2cfi.c')
-rw-r--r--gcc/dwarf2cfi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2cfi.c b/gcc/dwarf2cfi.c
index 4f44c7744b3..69e6f21719b 100644
--- a/gcc/dwarf2cfi.c
+++ b/gcc/dwarf2cfi.c
@@ -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;