2011-05-31 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_register_canonical_type): Do not register
any types via gimple_register_type.
From-SVN: r174483
+2011-05-31 Richard Guenther <rguenther@suse.de>
+
+ * gimple.c (gimple_register_canonical_type): Do not register
+ any types via gimple_register_type.
+
2011-05-31 Jan Hubicka <jh@suse.cz>
* lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
gimple_register_canonical_type (tree t)
{
void **slot;
- tree orig_t = t;
gcc_assert (TYPE_P (t));
- if (TYPE_CANONICAL (t))
- return TYPE_CANONICAL (t);
-
- /* Use the leader of our main variant for determining our canonical
- type. The main variant leader is a type that will always
- prevail. */
- t = gimple_register_type (TYPE_MAIN_VARIANT (t));
-
if (TYPE_CANONICAL (t))
return TYPE_CANONICAL (t);
*slot = (void *) t;
}
- /* Also cache the canonical type in the non-leaders. */
- TYPE_CANONICAL (orig_t) = t;
-
return t;
}