diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-15 12:59:37 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-15 12:59:37 +0000 |
commit | a38b8c3e9575c5d5eba00e4204a1d6d176ffbb8d (patch) | |
tree | a9db66aebef75033e2ff397e849c66b89273cd55 /gcc/dwarf2out.c | |
parent | 7e336e21baa411b7551fc0bd4a3c82f698a95e92 (diff) | |
download | gcc-a38b8c3e9575c5d5eba00e4204a1d6d176ffbb8d.tar.gz |
2012-11-15 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 193527 using svnmerge.py
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@193531 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 823b49732c4..c5559c869e8 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -4228,6 +4228,10 @@ index_addr_table_entry (void **h, void *v) addr_table_entry *node = (addr_table_entry *) *h; unsigned int *index = (unsigned int *) v; + /* Don't index unreferenced nodes. */ + if (node->refcount == 0) + return 1; + gcc_assert(node->index == NO_INDEX_ASSIGNED); node->index = *index; *index += 1; |