diff options
author | Jason Merrill <jason@redhat.com> | 2012-07-26 06:15:17 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2012-07-26 06:15:17 -0400 |
commit | e01eb851863cb10d625eda00af0df2a657486bbc (patch) | |
tree | 95e1ef6a9aac9886d146a83819c7ffdbc6ec8459 /gcc/dwarf2out.c | |
parent | ceef45657cae1bb595873bd745b0c1f8c6d5ce94 (diff) | |
download | gcc-jason/comdat-debug.tar.gz |
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index c079d3e5101..16e8c4c0477 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -5878,7 +5878,7 @@ same_die_p_wrap (dw_die_ref die1, dw_die_ref die2) return ret; } -/* htab_t callback for a struct die_tree_map: The DIE pointer is the key. */ +/* htab_t callback to hash a die_tree_map: The DIE pointer is the key. */ static hashval_t die_tree_map_hash (const void *x) @@ -5886,6 +5886,8 @@ die_tree_map_hash (const void *x) return htab_hash_pointer (((const struct die_tree_map *)x)->die); } +/* htab_t callback to compare two die_tree_maps. */ + static int die_tree_map_eq (const void *x1, const void *x2) { @@ -5910,7 +5912,7 @@ record_comdat_key (dw_die_ref die, tree key) die_tree_map_eq, ggc_free); slot = htab_find_slot (comdat_key_map, &m, INSERT); - if (*slot == HTAB_EMPTY_ENTRY || *slot == HTAB_DELETED_ENTRY) + if (*slot == HTAB_EMPTY_ENTRY) { mp = ggc_alloc_die_tree_map (); *mp = m; |