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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:05109b1bd5ef4ee9d78fe17d4563889694a26d05

commit r14-9385-g05109b1bd5ef4ee9d78fe17d4563889694a26d05
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Mar 8 09:14:32 2024 +0100

    dwarf2out: Emit DW_AT_export_symbols on anon unions/structs [PR113918]

    DWARF5 added DW_AT_export_symbols both for use on inline namespaces (where
    we emit it), but also on anonymous unions/structs (and we didn't emit that
    attribute there).
    The following patch fixes it.

    2024-03-08  Jakub Jelinek  <ja...@redhat.com>

            PR debug/113918
    gcc/
            * dwarf2out.cc (gen_field_die): Emit DW_AT_export_symbols
            on anonymous unions or structs for -gdwarf-5 or -gno-strict-dwarf.
    gcc/c/
            * c-tree.h (c_type_dwarf_attribute): Declare.
            * c-objc-common.h (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Redefine.
            * c-objc-common.cc: Include dwarf2.h.
            (c_type_dwarf_attribute): New function.
    gcc/cp/
            * cp-objcp-common.cc (cp_type_dwarf_attribute): Return 1
            for DW_AT_export_symbols on anonymous structs or unions.
    gcc/testsuite/
            * c-c++-common/dwarf2/pr113918.c: New test.
  • [Bug debug/113918] Incomplete D... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to