summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-13 14:43:44 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-13 14:43:44 +0000
commit6cd6787c775348bdf5a56428a6bc9d28c7109d7d (patch)
treeef1bbe465db7790613b6d18f148baf8d06fab828 /gcc/tree.c
parent0b44da0dc2723f92028816a9d5ee7c0603b61e9c (diff)
downloadgcc-6cd6787c775348bdf5a56428a6bc9d28c7109d7d.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182286 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index cbe55421181..d62afe5c6cb 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -4796,6 +4796,7 @@ find_decls_types_r (tree *tp, int *ws, void *data)
{
fld_worklist_push (DECL_ARGUMENT_FLD (t), fld);
fld_worklist_push (DECL_VINDEX (t), fld);
+ fld_worklist_push (DECL_ORIGINAL_TYPE (t), fld);
}
else if (TREE_CODE (t) == FIELD_DECL)
{