This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR48964
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 May 2011 17:27:37 +0200 (CEST)
- Subject: [PATCH] Fix PR48964
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.
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,