aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-10-25 18:30:27 +0000
committerCary Coutant <ccoutant@gcc.gnu.org>2012-10-25 11:30:27 -0700
commit0d198936b908bcf4aa4138ae86774955c9db6854 (patch)
tree86f6fb6f16bcd909036bf0ab88506329d348163f /gcc
parentf99a463f8a9051c295259de984927e64a481f3b4 (diff)
downloadgcc-0d198936b908bcf4aa4138ae86774955c9db6854.zip
gcc-0d198936b908bcf4aa4138ae86774955c9db6854.tar.gz
gcc-0d198936b908bcf4aa4138ae86774955c9db6854.tar.bz2
re PR debug/55063 (Thousands of failures in the libstdc++-v3 tests after revision 192739)
gcc/ PR debug/55063 * dwarf2out.c (prune_unused_types_prune): Check whether DIE is already a declaration. From-SVN: r192820
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index effaa8f..f267010 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-25 Cary Coutant <ccoutant@google.com>
+
+ PR debug/55063
+ * dwarf2out.c (prune_unused_types_prune): Check whether DIE is
+ already a declaration.
+
2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
* lra-assigns.c (assign_by_spills): Add non-reload pseudos
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index bed3d67..6442edd 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);
}