diff options
author | Cary Coutant <ccoutant@google.com> | 2012-10-25 18:30:27 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2012-10-25 18:30:27 +0000 |
commit | 9064a42115c80c1c4bc48cb55b16fe4f410e1b07 (patch) | |
tree | 86f6fb6f16bcd909036bf0ab88506329d348163f /gcc/dwarf2out.c | |
parent | 9667940b7e9c285f5189b87d30ab30f894fb2730 (diff) |
gcc/
PR debug/55063
* dwarf2out.c (prune_unused_types_prune): Check whether DIE is
already a declaration.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@192820 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index bed3d67353a..6442edd85f9 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -21259,7 +21259,8 @@ prune_unused_types_prune (dw_die_ref die) /* If we pruned children, and this is a class, mark it as a declaration to inform debuggers that this is not a complete class definition. */ - if (pruned && die->die_mark == 1 && class_scope_p (die)) + if (pruned && die->die_mark == 1 && class_scope_p (die) + && ! is_declaration_die (die)) add_AT_flag (die, DW_AT_declaration, 1); } |