Commit fc74cbc4 by H.J. Lu Committed by H.J. Lu

re PR debug/36980 (Bootstrap broken with RTL checking on i586)

2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>

	PR debug/36980
	* dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
	rule 19.

From-SVN: r138424
parent 964771d9
2008-07-31 H.J. Lu <hongjiu.lu@intel.com> 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
PR debug/36980
* dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
rule 19.
2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
PR debug/36976 PR debug/36976
* dwarf2out.c (dwarf2out_args_size_adjust): New. * dwarf2out.c (dwarf2out_args_size_adjust): New.
(dwarf2out_stack_adjust): Use it. (dwarf2out_stack_adjust): Use it.
......
...@@ -2024,6 +2024,13 @@ dwarf2out_frame_debug_expr (rtx expr, const char *label) ...@@ -2024,6 +2024,13 @@ dwarf2out_frame_debug_expr (rtx expr, const char *label)
gcc_unreachable (); gcc_unreachable ();
} }
/* Rule 17 */
/* If the source operand of this MEM operation is not a
register, basically the source is return address. Here
we only care how much stack grew and we don't save it. */
if (!REG_P (src))
break;
if (REGNO (src) != STACK_POINTER_REGNUM if (REGNO (src) != STACK_POINTER_REGNUM
&& REGNO (src) != HARD_FRAME_POINTER_REGNUM && REGNO (src) != HARD_FRAME_POINTER_REGNUM
&& (unsigned) REGNO (src) == cfa.reg) && (unsigned) REGNO (src) == cfa.reg)
...@@ -2082,12 +2089,6 @@ dwarf2out_frame_debug_expr (rtx expr, const char *label) ...@@ -2082,12 +2089,6 @@ dwarf2out_frame_debug_expr (rtx expr, const char *label)
break; break;
} }
} }
/* Rule 17 */
/* If the source operand of this MEM operation is not a
register, basically the source is return address. Here
we only care how much stack grew and we don't save it. */
if (!REG_P (src))
break;
def_cfa_1 (label, &cfa); def_cfa_1 (label, &cfa);
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment