Commit 35bb4945 by H.J. Lu Committed by H.J. Lu

re PR debug/37002 (No debug info on unreferenced parameters after stack alignment)

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

	PR debug/37002
	* dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
	has been optimized out.

From-SVN: r141049
parent dc3ba671
2008-10-10 H.J. Lu <hongjiu.lu@intel.com>
PR debug/37002
* dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
has been optimized out.
2008-10-10 Richard Sandiford <rdsandiford@googlemail.com>
* config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
......
......@@ -10008,6 +10008,16 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode,
distinction between OP_REG and OP_BASEREG. */
if (REGNO (rtl) < FIRST_PSEUDO_REGISTER)
mem_loc_result = based_loc_descr (rtl, 0, VAR_INIT_STATUS_INITIALIZED);
else if (stack_realign_drap
&& crtl->drap_reg
&& crtl->args.internal_arg_pointer == rtl
&& REGNO (crtl->drap_reg) < FIRST_PSEUDO_REGISTER)
{
/* If RTL is internal_arg_pointer, which has been optimized
out, use DRAP instead. */
mem_loc_result = based_loc_descr (crtl->drap_reg, 0,
VAR_INIT_STATUS_INITIALIZED);
}
break;
case MEM:
......
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