diff mbox

Fix PR48964

Message ID alpine.LNX.2.00.1105111726210.810@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener May 11, 2011, 3:27 p.m. UTC
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  <rguenther@suse.de>

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

Patch

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,