Hello,

This patch fixes the static link description in DWARF to comply with the specification. In order to do so, it appends a field to all FRAME objects to hold the frame base address (DW_AT_frame_base) so that the nested subrograms can directly reference this field.

See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53927> for the context (in particular why we need this additional field in FRAME objects).

Bootstrapped and regtested successfuly on x86_64-linux. Ok for trunk? Thank you in advance!

gcc/ChangeLog:

        PR debug/53927
        * tree-nested.c (finalize_nesting_tree_1): Append a field to
        hold the frame base address.
        * dwarf2out.c (gen_subprogram_die): Generate for
        DW_AT_static_link a location description that computes the value
        of this field.

--
Pierre-Marie de Rodat

Reply via email to