dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Oct 2016 15:19:52 +0000 (17:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 Oct 2016 15:19:52 +0000 (17:19 +0200)
commit75a434a91b590ce1e733ffcb5a5810221f94571f
treec6278306de56193fe3dde9a59b034a60309e8800
parent8e6982f7aac4c8d539f194e302fb67179f98c3f1
dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.

* dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
(ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
(ranges_table_allocated, ranges_table_in_use,
ranges_by_label_allocated, ranges_by_label_in_use,
RANGES_TABLE_INCREMENT): Removed.
(add_ranges_num): Use vec_safe_push into ranges_table.
(add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
(output_ranges): Adjust for ranges_table and ranges_by_label
conversion from arrays to vec.
(add_high_low_attributes, dwarf2out_finish): Adjust for range_table
conversion from arrays to vec.
(dwarf2out_c_finalize): Don't clear ranges_table_allocated,
ranges_table_in_use, ranges_by_label_allocated and
ranges_by_label_in_use.  Set ranges_by_label to NULL instead of 0.

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