re PR debug/48354 (internal compiler error: in splice_child_die, at dwarf2out.c:8064)
authorRichard Guenther <rguenther@suse.de>
Tue, 13 Dec 2011 14:43:44 +0000 (14:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 13 Dec 2011 14:43:44 +0000 (14:43 +0000)
commitea973bad53d63fa66e3a6b0446ae95e7e130f30a
treeef1bbe465db7790613b6d18f148baf8d06fab828
parent88d599dcf67fd7be5c2a6bdd279bbd7e1ac7f7aa
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
gcc/ChangeLog
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr48354-1_0.C [new file with mode: 0644]
gcc/tree-streamer-in.c
gcc/tree-streamer-out.c
gcc/tree.c