diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-03-11 17:50:08 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-03-11 17:50:08 +0100 |
commit | cd5437ab5d98cf95cc6686a533b7d3582bcb1706 (patch) | |
tree | 54e2da59d352dcb8b8042f0b4be28546059be6fb /gcc/fortran/iresolve.c | |
parent | ff77f6e8b3c1ad4ef3ec86289969e10100911913 (diff) | |
download | gcc-cd5437ab5d98cf95cc6686a533b7d3582bcb1706.zip gcc-cd5437ab5d98cf95cc6686a533b7d3582bcb1706.tar.gz gcc-cd5437ab5d98cf95cc6686a533b7d3582bcb1706.tar.bz2 |
re PR debug/58150 (debug info about definition of enum class not emitted if the declaration was already used in a class)
PR debug/58150
* dwarf2out.c (gen_enumeration_type_die): Don't guard adding
DW_AT_declaration for ENUM_IS_OPAQUE on -gdwarf-4 or -gno-strict-dwarf,
but on TYPE_SIZE. Don't do anything for ENUM_IS_OPAQUE if not creating
a new die. Don't set TREE_ASM_WRITTEN if ENUM_IS_OPAQUE. Guard
addition of most attributes on !orig_type_die or the attribute not
being present already. Assert TYPE_VALUES is NULL for ENUM_IS_OPAQUE.
* g++.dg/debug/dwarf2/enum2.C: New test.
From-SVN: r258434
Diffstat (limited to 'gcc/fortran/iresolve.c')
0 files changed, 0 insertions, 0 deletions