tree.c: add [cd]tors to free_lang_data_d
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>
Wed, 13 Jul 2016 02:43:10 +0000 (02:43 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Wed, 13 Jul 2016 02:43:10 +0000 (02:43 +0000)
commit74ea4cd5e3ecffdfbd50e2a03eac903d1c46900c
treecaffa7ffe14f6985665e1f80863de4a69210a13e
parent4aa59659944ed1e331bc43185776df4db9d32849
tree.c: add [cd]tors to free_lang_data_d

gcc/ChangeLog:

2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

* tree.c (struct free_lang_data_d): Add constructor and change
types of members to ones that automatically manage resources.
(fld_worklist_push): Adjust.
(find_decls_types): Likewise.
(find_decls_types_in_eh_region): Likewise.
(free_lang_data_in_cgraph): Stop manually creating and
destroying members of free_lang_data_d.

From-SVN: r238278
gcc/ChangeLog
gcc/tree.c