Commit 2611db71 by Richard Guenther Committed by Richard Biener

gimple.c (gimple_register_canonical_type): Do not register any types via gimple_register_type.

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
parent b9e57365
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
......
......@@ -4749,21 +4749,12 @@ tree
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);
if (gimple_canonical_types == NULL)
gimple_canonical_types = htab_create_ggc (16381, gimple_canonical_type_hash,
gimple_canonical_type_eq, 0);
......@@ -4783,9 +4774,6 @@ gimple_register_canonical_type (tree t)
*slot = (void *) t;
}
/* Also cache the canonical type in the non-leaders. */
TYPE_CANONICAL (orig_t) = t;
return t;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment