summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-01 09:46:19 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-01 09:46:19 +0000
commit4525baee1ed29080845aef4793e30883aa0d2d8d (patch)
tree4350359914b33a7170ae49a554770232e317a6c9 /gcc/lto-streamer.c
parentf69f16c8633fd5167aea83171748ca34dd3d2f94 (diff)
downloadgcc-4525baee1ed29080845aef4793e30883aa0d2d8d.tar.gz
2011-03-01 Richard Guenther <rguenther@suse.de>
PR lto/47924 * lto-streamer.c (lto_record_common_node): Also register the canonical type. * gcc.dg/lto/pr47924_0.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170589 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer.c')
-rw-r--r--gcc/lto-streamer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c
index dba9d2d5dd7..67132ef1dff 100644
--- a/gcc/lto-streamer.c
+++ b/gcc/lto-streamer.c
@@ -527,7 +527,9 @@ lto_record_common_node (tree *nodep, VEC(tree, heap) **common_nodes,
are set by the middle-end. */
if (in_lto_p)
TYPE_CANONICAL (node) = NULL_TREE;
- *nodep = node = gimple_register_type (node);
+ node = gimple_register_type (node);
+ TYPE_CANONICAL (node) = gimple_register_canonical_type (node);
+ *nodep = node;
}
/* Return if node is already seen. */