https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113488

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:62b59bc4f70d02a485c527aa3277f4b4010edb6b

commit r14-8281-g62b59bc4f70d02a485c527aa3277f4b4010edb6b
Author: Richard Biener <rguent...@suse.de>
Date:   Fri Jan 19 09:50:43 2024 +0100

    debug/113488 - DW_AT_abstract_origin to self

    The new sanity check avoiding creating of DIE refs to self triggers
    on the PRs testcase when using -g1 and -ffat-lto-objects as while
    early DWARF with -g1 doesn't contain any DIEs for LABEL_DECLs later
    cloning will still mark DECLs as in if they would via
    dwarf2out_abstract_function calling set_block_origin_self.

    Instead of messing with the delicate setup of dwarf2out at this stage
    the following simply rectifies things after the fact during LTO
    streaming when the decl indicates there's an early DIE but there
    isn't fixup that indication.

            PR debug/113488
            * lto-streamer-in.cc (lto_read_tree_1): When there isn't
            an early DIE but there should be, do not pretend there is.

Reply via email to