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

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


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

 Richard> On Tue, Jun 18, 2002 at 09:41:44AM -0400, Paul Koning wrote:
 >> 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.

 Richard> Then Jason mis-spoke when he said "caller's saveregmask"?

The stackframe contains the saveregmask of the current function,
copied from its entry point.  (That's how ret knows which registers to
restore.)  So I would describe it as "function's saveregmask", not
"caller's".

 Richard> Or is it the case that a function's saved registers are
 Richard> saved when it makes a call, rather than on funcition entry?

No, function entry/exit is where save/restore is done.

    paul



More information about the Gcc-patches mailing list