diff options
author | Richard Guenther <rguenther@suse.de> | 2011-12-13 14:43:44 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-12-13 14:43:44 +0000 |
commit | ea973bad53d63fa66e3a6b0446ae95e7e130f30a (patch) | |
tree | ef1bbe465db7790613b6d18f148baf8d06fab828 /gcc/tree.c | |
parent | 88d599dcf67fd7be5c2a6bdd279bbd7e1ac7f7aa (diff) | |
download | gcc-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.c')
-rw-r--r-- | gcc/tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |