This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR58521
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Sep 2013 11:48:49 +0200 (CEST)
- Subject: [PATCH] Fix PR58521
- Authentication-results: sourceware.org; auth=none
This hopefully fixes the bootstrap issue people were seeing.
It fixes the ICE on the file I reproduced it on with i586 bootstrap.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
I'm still reducing a testcase.
Richard.
2013-09-25 Richard Biener <rguenther@suse.de>
PR middle-end/58521
* tree.c (iterative_hash_expr): Remove MEM_REF special handling.
Index: gcc/tree.c
===================================================================
--- gcc/tree.c (revision 202885)
+++ gcc/tree.c (working copy)
@@ -7280,21 +7280,6 @@ iterative_hash_expr (const_tree t, hashv
}
return val;
}
- case MEM_REF:
- {
- /* The type of the second operand is relevant, except for
- its top-level qualifiers. */
- tree type = TYPE_MAIN_VARIANT (TREE_TYPE (TREE_OPERAND (t, 1)));
-
- val = iterative_hash_object (TYPE_HASH (type), val);
-
- /* We could use the standard hash computation from this point
- on. */
- val = iterative_hash_object (code, val);
- val = iterative_hash_expr (TREE_OPERAND (t, 1), val);
- val = iterative_hash_expr (TREE_OPERAND (t, 0), val);
- return val;
- }
case FUNCTION_DECL:
/* When referring to a built-in FUNCTION_DECL, use the __builtin__ form.
Otherwise nodes that compare equal according to operand_equal_p might