dwarf2out.c (debug_line_str_section): New variable.
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 31 Oct 2016 21:44:53 +0000 (22:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 31 Oct 2016 21:44:53 +0000 (22:44 +0100)
commit3aa46b47b266fdb36067253fe5b88628c2bf39f8
treec58a1539f5f9eb591fb0a1b3039809bd587f0dc1
parentf3a5a02f6382f33cf2539aefbb71725bad6742df
dwarf2out.c (debug_line_str_section): New variable.

* dwarf2out.c (debug_line_str_section): New variable.
(debug_line_str_hash): Likewise.
(DEBUG_LINE_STR_SECTION): Define.
(set_indirect_string): Handle DW_FORM_line_strp like
DW_FORM_strp.
(find_string_form): Fix up formatting.
(size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
Fix up indentation.
(output_die): Handle DW_FORM_line_strp.
(DWARF5_USE_DEBUG_LINE_STR): Define.
(output_line_string): New function.
(output_file_names): Add -gdwarf-5 support.
(output_line_info): Likewise.
(init_sections_and_labels): Initialize debug_line_str_section.
(output_indirect_string): Change 2nd argument from void *
to enum dwarf_form form, compare with form rather than
DW_FORM_strp.
(output_indirect_strings): Pass DW_FORM_strp to
output_indirect_string traversion.
(dwarf2out_finish): Output .debug_line_str strings.
(dwarf2out_c_finalize): Clear debug_line_str_section and
debug_line_str_hash.

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