+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
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: