aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-out.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2018-06-22 12:09:10 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2018-06-22 10:09:10 +0000
commit0c172706f4c49a3015ecd248b90ddbbb62dbedec (patch)
tree4a0fdd8ff760fafdc98062a920540db2dc74ec33 /gcc/lto-streamer-out.c
parent31dd69b7ff60979b615e45229f759613873989e6 (diff)
downloadgcc-0c172706f4c49a3015ecd248b90ddbbb62dbedec.zip
gcc-0c172706f4c49a3015ecd248b90ddbbb62dbedec.tar.gz
gcc-0c172706f4c49a3015ecd248b90ddbbb62dbedec.tar.bz2
lto-streamer-out.c (DFS::DFS_write_tree_body): Do not stream BINFO_BASE_ACCESSES and BINFO_VPTR_FIELD.
* lto-streamer-out.c (DFS::DFS_write_tree_body): Do not stream BINFO_BASE_ACCESSES and BINFO_VPTR_FIELD. * tree-streamer-in.c (streamer_read_tree_bitfields): Likewise. (lto_input_ts_binfo_tree_pointers): Likewise. * tree-streamer-out.c (streamer_write_tree_bitfields, write_ts_binfo_tree_pointers): Likewise. * tree.c (free_lang_data_in_binfo): Clear BINFO_VPTR_FIELD. From-SVN: r261885
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r--gcc/lto-streamer-out.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index d9f85bb..313b76e 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -939,15 +939,10 @@ DFS::DFS_write_tree_body (struct output_block *ob,
DFS_follow_tree_edge (t);
DFS_follow_tree_edge (BINFO_OFFSET (expr));
DFS_follow_tree_edge (BINFO_VTABLE (expr));
- DFS_follow_tree_edge (BINFO_VPTR_FIELD (expr));
- /* The number of BINFO_BASE_ACCESSES has already been emitted in
- EXPR's bitfield section. */
- FOR_EACH_VEC_SAFE_ELT (BINFO_BASE_ACCESSES (expr), i, t)
- DFS_follow_tree_edge (t);
-
- /* Do not walk BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX
- and BINFO_VPTR_INDEX; these are used by C++ FE only. */
+ /* Do not walk BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX,
+ BINFO_BASE_ACCESSES and BINFO_VPTR_INDEX; these are used
+ by C++ FE only. */
}
if (CODE_CONTAINS_STRUCT (code, TS_CONSTRUCTOR))
@@ -1332,11 +1327,9 @@ hash_tree (struct streamer_tree_cache_d *cache, hash_map<tree, hashval_t> *map,
visit (b);
visit (BINFO_OFFSET (t));
visit (BINFO_VTABLE (t));
- visit (BINFO_VPTR_FIELD (t));
- FOR_EACH_VEC_SAFE_ELT (BINFO_BASE_ACCESSES (t), i, b)
- visit (b);
/* Do not walk BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX
- and BINFO_VPTR_INDEX; these are used by C++ FE only. */
+ BINFO_BASE_ACCESSES and BINFO_VPTR_INDEX; these are used
+ by C++ FE only. */
}
if (CODE_CONTAINS_STRUCT (code, TS_CONSTRUCTOR))