aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-04-10 15:18:19 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2006-04-10 15:18:19 +0200
commitef85ac9aad0870225173b8c066a86ebaf866fd22 (patch)
tree4c6276b9bf53bb3f8dda5a003a4803f00c5f1109 /gcc/dwarf2out.c
parent55fc9243b7fc0a6c84fb7ff6bf896614bbde91ce (diff)
downloadgcc-ef85ac9aad0870225173b8c066a86ebaf866fd22.zip
gcc-ef85ac9aad0870225173b8c066a86ebaf866fd22.tar.gz
gcc-ef85ac9aad0870225173b8c066a86ebaf866fd22.tar.bz2
re PR debug/27057 (ICE with -feliminate-dwarf2-dups and using namespace)
PR debug/27057 * dwarf2out.c (is_symbol_die): Return true also for namespaces. * g++.dg/debug/dwarf2-2.C: New test. From-SVN: r112820
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index e400eb3..bfcc68f 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -6263,7 +6263,8 @@ is_symbol_die (dw_die_ref c)
{
return (is_type_die (c)
|| (get_AT (c, DW_AT_declaration)
- && !get_AT (c, DW_AT_specification)));
+ && !get_AT (c, DW_AT_specification))
+ || c->die_tag == DW_TAG_namespace);
}
static char *