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

--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Bernd Edlinger <edlin...@gcc.gnu.org>:

https://gcc.gnu.org/g:bcb33b1237042e9540a905d9de19219f876e26c0

commit r15-3083-gbcb33b1237042e9540a905d9de19219f876e26c0
Author: Bernd Edlinger <bernd.edlin...@hotmail.de>
Date:   Fri Aug 16 12:26:27 2024 +0200

    Do not emit a redundant DW_TAG_lexical_block for inlined subroutines

    While this already works correctly for the case when an inlined
    subroutine contains only one subrange, a redundant DW_TAG_lexical_block
    is still emitted when the subroutine has multiple blocks.

    Fixes: ac02e5b75451 ("re PR debug/37801 (DWARF output for inlined functions
                          doesn't always use DW_TAG_inlined_subroutine)")

    gcc/ChangeLog:

            PR debug/87440
            * dwarf2out.cc (gen_inlined_subroutine_die): Handle the case
            of multiple subranges correctly.

    gcc/testsuite/ChangeLog:

            * gcc.dg/debug/dwarf2/inline7.c: New test.

Reply via email to