This typo prevents a load of canonical type merging and thus very
likely causes PR48964.

I'm currently checking if it fixes LTO profiledbootstrap and will commit
if it does (and also if it doesn't - it's quite an obvious bug).

Richard.

2011-05-11  Richard Guenther  <rguent...@suse.de>

        PR middle-end/48964
        * gimple.c (iterative_hash_canonical_type): Fix typo.

Index: gcc/gimple.c
===================================================================
--- gcc/gimple.c        (revision 173655)
+++ gcc/gimple.c        (working copy)
@@ -4304,7 +4304,7 @@ iterative_hash_canonical_type (tree type
   m.base.from = type;
   if ((slot = htab_find_slot (canonical_type_hash_cache, &m, INSERT))
       && *slot)
-    return iterative_hash_hashval_t (((struct tree_int_map *) *slot)->to, 0);
+    return iterative_hash_hashval_t (((struct tree_int_map *) *slot)->to, val);
 
   /* Combine a few common features of types so that types are grouped into
      smaller sets; when searching for existing matching types to merge,

Reply via email to