dwarf2out.c (debug_str_hash): New.
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Nov 2001 21:07:46 +0000 (22:07 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Nov 2001 21:07:46 +0000 (22:07 +0100)
commit9eb4015a4aa7ac6585ab7749d65dbb5823e41f19
treeb9d5aa6dec87e9d425f456603496a28ee2122a5d
parent944effb637cc9756bbce3c702bd79bca39a0575c
dwarf2out.c (debug_str_hash): New.

* dwarf2out.c (debug_str_hash): New.
(struct indirect_string_node): New.
(struct dw_val_struct): Change type of val_str to it.
(DEBUG_STR_SECTION_FLAGS): Define.
(add_AT_string): Push string into hashtable, increment reference
counter.
(AT_string): Return string from ht_identifier.
(AT_string_form): New.
(free_AT): For dw_val_class_str, just decrement reference counter.
(size_of_string): Remove.
(size_of_die): Use AT_string_form to decide what size the string
occupies in DIE.
(size_of_pubnames): Use strlen instead of size_of_string.
(value_format): Use AT_string_form for dw_val_class_str.
(output_die): Output DW_FORM_strp strings using
dw2_asm_output_offset.
(indirect_string_alloc, output_indirect_string): New.
(dwarf2out_finish): Emit .debug_str strings if there are any.

From-SVN: r46858
gcc/ChangeLog
gcc/dwarf2out.c