aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2008-07-31 21:28:54 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2008-07-31 14:28:54 -0700
commitd2d93c32dc020c143ca5ffc8b72969cbef530778 (patch)
tree5b5de8d55327239ef11486dfd02ce87e62a4f059 /gcc/dwarf2out.c
parentc983efcec6d1d022c5ec6cd0f3ff4c0126a0e415 (diff)
downloadgcc-d2d93c32dc020c143ca5ffc8b72969cbef530778.zip
gcc-d2d93c32dc020c143ca5ffc8b72969cbef530778.tar.gz
gcc-d2d93c32dc020c143ca5ffc8b72969cbef530778.tar.bz2
re PR debug/36977 (Incorrect debug info for stack variables with stack alignment)
2008-07-31 H.J. Lu <hongjiu.lu@intel.com> PR debug/36977 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried. * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried for stack alignment. * function.h (rtl_data): Add stack_realign_tried. Update comments. From-SVN: r138438
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 1219892..7e29d2a 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -9453,8 +9453,7 @@ based_loc_descr (rtx reg, HOST_WIDE_INT offset,
pointer + offset to access stack variables. If stack
is aligned without drap, use stack pointer + offset to
access stack variables. */
- if (fde
- && fde->stack_realign
+ if (crtl->stack_realign_tried
&& cfa.reg == HARD_FRAME_POINTER_REGNUM
&& reg == frame_pointer_rtx)
{