dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
[gcc.git] / gcc / dwarf2out.c
index f9a1e70e58010af8e9199bebab9b3b289611bd19..835e4ecd88405133af7370959c17604d791a9791 100644 (file)
@@ -10408,8 +10408,8 @@ based_loc_descr (rtx reg, HOST_WIDE_INT offset,
     }
   else if (!optimize
           && fde
-          && (fde->drap_reg == REGNO (reg)
-              || fde->vdrap_reg == REGNO (reg)))
+          && (fde->drap_reg == dwarf_frame_regnum (REGNO (reg))
+              || fde->vdrap_reg == dwarf_frame_regnum (REGNO (reg))))
     {
       /* Use cfa+offset to represent the location of arguments passed
         on the stack when drap is used to align stack.