From 28428506aafe4613e4abf0b38671b4fc9c371ef9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 30 Aug 2018 14:36:24 +0200 Subject: [PATCH] lto-streamer-out.c (DFS::DFS_write_tree_body): Do not walk DECL_VINDEX. * lto-streamer-out.c (DFS::DFS_write_tree_body): Do not walk DECL_VINDEX. (hash_tree): Likewise. From-SVN: r263979 --- gcc/ChangeLog | 6 ++++++ gcc/lto-streamer-out.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa2339b170c..0349cdc919d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-08-29 Jan Hubicka + + * lto-streamer-out.c (DFS::DFS_write_tree_body): Do not walk + DECL_VINDEX. + (hash_tree): Likewise. + 2018-08-29 Jan Hubicka * tree.c (find_decls_types_r): Walk also TYPE_NEXT_PTR_TO diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index f9d0f3e08ec..9c6ba2619f0 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -837,7 +837,7 @@ DFS::DFS_write_tree_body (struct output_block *ob, if (CODE_CONTAINS_STRUCT (code, TS_FUNCTION_DECL)) { - DFS_follow_tree_edge (DECL_VINDEX (expr)); + gcc_checking_assert (DECL_VINDEX (expr) == NULL); DFS_follow_tree_edge (DECL_FUNCTION_PERSONALITY (expr)); DFS_follow_tree_edge (DECL_FUNCTION_SPECIFIC_TARGET (expr)); DFS_follow_tree_edge (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (expr)); @@ -1253,7 +1253,6 @@ hash_tree (struct streamer_tree_cache_d *cache, hash_map *map, if (CODE_CONTAINS_STRUCT (code, TS_FUNCTION_DECL)) { - visit (DECL_VINDEX (t)); visit (DECL_FUNCTION_PERSONALITY (t)); visit (DECL_FUNCTION_SPECIFIC_TARGET (t)); visit (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (t)); -- 2.30.2