dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
authorGeoffrey Keating <geoffk@apple.com>
Mon, 10 Apr 2006 18:16:07 +0000 (18:16 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Mon, 10 Apr 2006 18:16:07 +0000 (18:16 +0000)
commit1a27722fa1d681f3e2267478db7829fbce70fc56
tree8eb3fd7e8ec8466e24bddd345a50f519b027d16c
parente92857a103ce0e0aa100d8509deffba228f4fe17
dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.

* dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
Declare VECs of this type.
(struct die_struct): Make field die_attr a VEC of dw_attr_struct.
(remove_children): Delete.
(add_dwarf_attr): Use VEC routines.
(add_AT_flag): Update for changes to add_dwarf_attr.
(add_AT_int): Likewise.
(add_AT_unsigned): Likewise.
(add_AT_long_long): Likewise.
(add_AT_vec): Likewise.
(add_AT_string): Likewise.
(add_AT_die_ref): Likewise.
(add_AT_fde_ref): Likewise.
(add_AT_loc): Likewise.
(add_AT_loc_list): Likewise.
(add_AT_addr): Likewise.
(add_AT_lbl_id): Likewise.
(add_AT_lineptr): Likewise.
(add_AT_macptr): Likewise.
(add_AT_offset): Likewise.
(add_AT_range_list): Likewise.
(get_AT): Use VEC_iterate.
(remove_AT): Use VEC_ordered_remove.
(free_die): Fold remove_children into here; have it use VEC_iterate.
(print_die): Use VEC_iterate on attrs.
(reverse_die_lists): Don't reverse attr lists.
(die_checksum): Use VEC_iterate on attrs.
(same_die_p): Likewise.
(output_location_lists): Likewise.
(build_abbrev_table): Likewise.
(size_of_die): Likewise.
(unmark_all_dies): Likewise.
(output_abbrev_section): Likewise.
(output_die): Likewise.
(prune_unused_types_walk_attribs): Likewise.

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