aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-streamer-out.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-12-13 14:43:44 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-12-13 14:43:44 +0000
commitea973bad53d63fa66e3a6b0446ae95e7e130f30a (patch)
treeef1bbe465db7790613b6d18f148baf8d06fab828 /gcc/tree-streamer-out.c
parent88d599dcf67fd7be5c2a6bdd279bbd7e1ac7f7aa (diff)
downloadgcc-ea973bad53d63fa66e3a6b0446ae95e7e130f30a.zip
gcc-ea973bad53d63fa66e3a6b0446ae95e7e130f30a.tar.gz
gcc-ea973bad53d63fa66e3a6b0446ae95e7e130f30a.tar.bz2
re PR debug/48354 (internal compiler error: in splice_child_die, at dwarf2out.c:8064)
2011-12-13 Richard Guenther <rguenther@suse.de> PR lto/48354 * tree.c (find_decls_types_r): Also walk DECL_ORIGINAL_TYPE. * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers): Stream DECL_ORIGINAL_TYPE. * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Likewise. lto/ * lto.c (lto_ft_decl_non_common): When we merged DECL_ORIGINAL_TYPE with the type of the TYPE_DECL clear DECL_ORIGINAL_TYPE. * g++.dg/lto/pr48354-1_0.C: New testcase. From-SVN: r182286
Diffstat (limited to 'gcc/tree-streamer-out.c')
-rw-r--r--gcc/tree-streamer-out.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-streamer-out.c b/gcc/tree-streamer-out.c
index c46859f..fea15ff 100644
--- a/gcc/tree-streamer-out.c
+++ b/gcc/tree-streamer-out.c
@@ -508,6 +508,8 @@ write_ts_decl_non_common_tree_pointers (struct output_block *ob, tree expr,
stream_write_tree (ob, DECL_ARGUMENTS (expr), ref_p);
stream_write_tree (ob, DECL_RESULT (expr), ref_p);
}
+ else if (TREE_CODE (expr) == TYPE_DECL)
+ stream_write_tree (ob, DECL_ORIGINAL_TYPE (expr), ref_p);
stream_write_tree (ob, DECL_VINDEX (expr), ref_p);
}