[PATCH/RFA] Allow register other than SP for DWARF2 CFA

Paul Koning pkoning@equallogic.com
Tue Jun 18 07:00:00 GMT 2002


>>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:

 Richard> On Mon, Jun 17, 2002 at 10:25:39PM -0700, Jason R Thorpe
 Richard> wrote:
 >> - for each reg in the saveregmask, push reg (counting downward,
 >> e.g. r11, then r10, then r5, etc. so the lowest register saved
 >> appears at the lowest address on the stack) - push PC - push FP -
 >> push AP - push saveregmask + psl + other stuff as a longword

 Richard> Ug.  Ok, lemme say first that dwarf2 is a bad fit for this
 Richard> model.  It expects that the set of saved registers is under
 Richard> the control of the callee, not the caller.

But it is.  The saveregmask, which specifies which registers are saved
in the stack frame, is the first word of the function being called.
The caller has no idea which registers are being saved.

	 paul




More information about the Gcc-patches mailing list