Can DWARF2 CFI represent a static return location?

Ian Lance Taylor iant@google.com
Wed Feb 20 03:55:00 GMT 2013


On Tue, Feb 19, 2013 at 7:32 PM, Alan Lehotsky <alehotsky@me.com> wrote:
> I'm looking at a machine with limited stack, and no push instructions or displaced-addressing mode.  The call instruction stores the return address in the link register.
>
> For non-recursive functions we save the return address in a static memory location, but I can't find a way to tell the DWARF2 CFI that the saved location is a static MEM rtx.  Am I missing something?

You  may have to use DW_CFA_def_cfa_expression with DW_OP_addr.

Ian



More information about the Gcc mailing list