From: Richard Guenther Date: Tue, 31 May 2011 14:24:22 +0000 (+0000) Subject: gimple.c (gimple_register_canonical_type): Do not register any types via gimple_regis... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2611db71ea2dda0b3c5fb32b2fc5778779a57fda;p=gcc.git gimple.c (gimple_register_canonical_type): Do not register any types via gimple_register_type. 2011-05-31 Richard Guenther * gimple.c (gimple_register_canonical_type): Do not register any types via gimple_register_type. From-SVN: r174483 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 86a288a631d..84a37572384 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-31 Richard Guenther + + * gimple.c (gimple_register_canonical_type): Do not register + any types via gimple_register_type. + 2011-05-31 Jan Hubicka * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl diff --git a/gcc/gimple.c b/gcc/gimple.c index 0cbd443337b..6a9b58d6023 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -4749,18 +4749,9 @@ 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); @@ -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; }