Commit 76f7a74f by Geoffrey Keating Committed by Geoffrey Keating

dwarf2out.c (prune_unused_types_update_strings): Don't add strings to hash table…

dwarf2out.c (prune_unused_types_update_strings): Don't add strings to hash table twice when the debug_str section has SECTION_MERGE.

	* dwarf2out.c (prune_unused_types_update_strings): Don't add strings
	to hash table twice when the debug_str section has SECTION_MERGE.

From-SVN: r113057
parent 49721058
2006-04-18 Geoffrey Keating <geoffk@apple.com>
* dwarf2out.c (prune_unused_types_update_strings): Don't add strings
to hash table twice when the debug_str section has SECTION_MERGE.
2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
* config/soft-fp: New directory. From glibc.
......
......@@ -13998,9 +13998,8 @@ prune_unused_types_update_strings (dw_die_ref die)
s->refcount++;
/* Avoid unnecessarily putting strings that are used less than
twice in the hash table. */
if (s->refcount == 2
|| (s->refcount == 1
&& (debug_str_section->common.flags & SECTION_MERGE) != 0))
if (s->refcount
== ((DEBUG_STR_SECTION_FLAGS & SECTION_MERGE) ? 1 : 2))
{
void ** slot;
slot = htab_find_slot_with_hash (debug_str_hash, s->str,
......
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