[Bug debug/101905] [9/10 Regression] Missed debug information for global register variable

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 10 08:20:29 GMT 2022


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

--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:059115826b61c6fb737fc6082a7ce5d4c725c503

commit r10-10640-g059115826b61c6fb737fc6082a7ce5d4c725c503
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon Aug 23 11:50:14 2021 +0200

    dwarf2out: Emit DW_AT_location for global register vars during early dwarf
[PR101905]

    The following patch emits DW_AT_location for global register variables
    already during early dwarf, since usually late_global_decl hook isn't even
    called for those, as nothing needs to be emitted for them.

    2021-08-23  Jakub Jelinek  <jakub@redhat.com>

            PR debug/101905
            * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
            register variables already during early_dwarf if possible.

            * gcc.dg/guality/pr101905.c: New test.

    (cherry picked from commit b284053bb75661fc1bf13c275f3ba5364bb17608)


More information about the Gcc-bugs mailing list