dwarf2 call frame related question
Richard Sandiford
rsandifo@redhat.com
Tue Jun 10 15:17:00 GMT 2003
"Dhananjay R. Deshpande" <dhananjayd@KPITCummins.com> writes:
> mov # -12, r3
> add r3, r7
>
> If this instruction ( add r3, r7 ) is marked RTX_FRAME_RELATED_P, the
> following code from dwarf2out_frame_debug_expr() in dwarf2out.c
> aborts.
I think the usual approach is to add an REG_FRAME_RELATED_EXPR note
to the stack adjustment. In the example above, the note can contain:
(set (sp) (plus (sp) (const_int -12)))
See the way mips_set_frame_expr() is used within mips_expand_prologue().
There are probably better examples in other ports, though...
Richard
More information about the Gcc
mailing list