tree-core.h (tree_type_non_common): Rename binfo to lang_1.
authorNathan Sidwell <nathan@acm.org>
Wed, 16 Aug 2017 19:42:28 +0000 (19:42 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 16 Aug 2017 19:42:28 +0000 (19:42 +0000)
commit8e093270e1cc952291c76a72b11aef538ed2830d
treed94401e00911f189ce0200934a358febe2d2cbd8
parentd001563319c4f599f04018acc6c497fbd67450d4
tree-core.h (tree_type_non_common): Rename binfo to lang_1.

* tree-core.h (tree_type_non_common): Rename binfo to lang_1.
* tree.h (TYPE_BINFO): Use type_non_common.maxval.
(TYPE_LANG_SLOT_1): Use type_non_common.lang_1, for any type.
* tree.c (free_lang_data_in_type): Use else-if chain.  Always
clear TYPE_LANG_1.  Remove obsolete member-function stripping.
(find_decls_types_r): Comment about TYPE_MAX_VALUES_RAW.
(verify_type): Adjust for TYPE_BINFO move.
* lto-streamer-out.c (DFS::DFS_write_tree_body): No need to
process TYPE_BINFO directly.
(hash_tree): Likewise.
* tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
Likewise.
* tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
Likewise.

lto/
* lto.c (mentions_vars_p_type): Use TYPE_LANG_SLOT_1.
(compare_tree_sccs_1): No need to compare TYPE_BINFO directly.
(lto_fixup_prevailing_decls): Use TYPE_LANG_SLOT_1.

From-SVN: r251129
gcc/ChangeLog
gcc/lto-streamer-out.c
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/tree-core.h
gcc/tree-streamer-in.c
gcc/tree-streamer-out.c
gcc/tree.c
gcc/tree.h