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

--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:38888c45da4414884a5424484f5db1ab951d9de6

commit r10-9070-g38888c45da4414884a5424484f5db1ab951d9de6
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Nov 10 18:02:04 2020 -0500

    dwarf2: Set DW_AT_declaration for undefined fns [PR97060]

    If DECL_INITIAL isn't set, we can't emit anything about the body of the
    function, so add the declaration attribute.

    gcc/ChangeLog:

            PR debug/97060
            * dwarf2out.c (gen_subprogram_die): It's a declaration
            if DECL_INITIAL isn't set.

    gcc/testsuite/ChangeLog:

            PR debug/97060
            * gcc.dg/debug/dwarf2/pr97060.c: New test.

Reply via email to