Commit bc6a3395 by Sterling Augustine Committed by Sterling Augustine

re PR debug/55328 (ICE: in output_addr_table_entry, at dwarf2out.c:21780 with -gsplit-dwarf)

2012-11-14  Sterling Augustine  <saugustine@google.com>

	PR debug/55328
	* dwarf2out.c (index_address_table_entry): Check a node's refcount.

From-SVN: r193515
parent 99ace34a
2012-11-14 Sterling Augustine <saugustine@google.com>
PR debug/55328
* dwarf2out.c (index_address_table_entry): Check a node's refcount.
2012-11-14 Jan Hubicka <jh@suse.cz>
PR bootstrap/55051
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment