dwarf2.def (DW_AT_string_length_bit_size, [...]): New attributes.
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 15 Aug 2016 09:51:44 +0000 (11:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 15 Aug 2016 09:51:44 +0000 (11:51 +0200)
commit980bd53780025944008dbcd89caeed8d6e782715
treeb1fa4a5a5e19172509214241f32cd3bd5e08242a
parent8ae261c007a5cdb70d1115d0195c32659561115f
dwarf2.def (DW_AT_string_length_bit_size, [...]): New attributes.

* dwarf2.def (DW_AT_string_length_bit_size,
DW_AT_string_length_byte_size): New attributes.

* dwarf2out.c (struct checksum_attributes): Add
at_string_length_bit_size and at_string_length_byte_size fields.
(collect_checksum_attributes): Handle DW_AT_string_length_bit_size
and DW_AT_string_length_byte_size.
(die_checksum_ordered): Handle at_string_length_bit_size and
at_string_length_byte_size.
(gen_array_type_die): For dwarf_version >= 5 emit
DW_AT_string_length_byte_size instead of DW_AT_byte_size.
(adjust_string_types): For dwarf_version >= 5 remove
DW_AT_string_length_byte_size instead of DW_AT_byte_size.
(resolve_addr): Likewise.

From-SVN: r239470
gcc/ChangeLog
gcc/dwarf2out.c
include/ChangeLog
include/dwarf2.def