aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-08-16 19:42:28 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-08-16 19:42:28 +0000
commit8e093270e1cc952291c76a72b11aef538ed2830d (patch)
treed94401e00911f189ce0200934a358febe2d2cbd8 /gcc/lto
parentd001563319c4f599f04018acc6c497fbd67450d4 (diff)
downloadgcc-8e093270e1cc952291c76a72b11aef538ed2830d.zip
gcc-8e093270e1cc952291c76a72b11aef538ed2830d.tar.gz
gcc-8e093270e1cc952291c76a72b11aef538ed2830d.tar.bz2
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
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog6
-rw-r--r--gcc/lto/lto.c5
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index baeeb39..eb2a5da 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,9 @@
+2017-08-16 Nathan Sidwell <nathan@acm.org>
+
+ * 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.
+
2017-08-08 Tom de Vries <tom@codesourcery.com>
* lto.c: Include attribs.h.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 31d1488..2064423 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -651,7 +651,7 @@ mentions_vars_p_type (tree t)
CHECK_VAR (TYPE_MAX_VALUE_RAW (t));
/* Accessor is for derived node types only. */
- CHECK_NO_VAR (t->type_non_common.binfo);
+ CHECK_NO_VAR (TYPE_LANG_SLOT_1 (t));
CHECK_VAR (TYPE_CONTEXT (t));
CHECK_NO_VAR (TYPE_CANONICAL (t));
@@ -1410,7 +1410,6 @@ compare_tree_sccs_1 (tree t1, tree t2, tree **map)
f1 || f2;
f1 = TREE_CHAIN (f1), f2 = TREE_CHAIN (f2))
compare_tree_edges (f1, f2);
- compare_tree_edges (TYPE_BINFO (t1), TYPE_BINFO (t2));
}
else if (code == FUNCTION_TYPE
|| code == METHOD_TYPE)
@@ -2584,7 +2583,7 @@ lto_fixup_prevailing_decls (tree t)
LTO_SET_PREVAIL (TYPE_MIN_VALUE_RAW (t));
LTO_SET_PREVAIL (TYPE_MAX_VALUE_RAW (t));
- LTO_NO_PREVAIL (t->type_non_common.binfo);
+ LTO_NO_PREVAIL (TYPE_LANG_SLOT_1 (t));
LTO_SET_PREVAIL (TYPE_CONTEXT (t));