re PR lto/83804 ([meta] LTO memory consumption)
authorRichard Biener <rguenther@suse.de>
Mon, 15 Jan 2018 08:57:28 +0000 (08:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 15 Jan 2018 08:57:28 +0000 (08:57 +0000)
commit2aa89839f557b7467704ddffa4dc43a130e8d027
treea99b33d1bcb9e41f26e0dd07602f589777237722
parenta55e8b53d059fbe33c5f016d8d9aca9731322ab7
re PR lto/83804 ([meta] LTO memory consumption)

2018-01-15  Richard Biener  <rguenther@suse.de>

PR lto/83804
* tree.c (free_lang_data_in_type): Always unlink TYPE_DECLs
from TYPE_FIELDS.  Free TYPE_BINFO if not used by devirtualization.
Reset type names to their identifier if their TYPE_DECL doesn't
have linkage (and thus is used for ODR and devirt).
(save_debug_info_for_decl): Remove.
(save_debug_info_for_type): Likewise.
(add_tree_to_fld_list): Adjust.
* tree-pretty-print.c (dump_generic_node): Make dumping of
type names more robust.

From-SVN: r256685
gcc/ChangeLog
gcc/tree-pretty-print.c
gcc/tree.c