Commit fdd7cdbf by Richard Guenther Committed by Richard Biener

gimplify.c (gimple_tree_eq): Assert hashes are equal only when checking is enabled.

2010-12-08  Richard Guenther  <rguenther@suse.de>

	* gimplify.c (gimple_tree_eq): Assert hashes are equal only
	when checking is enabled.

From-SVN: r167591
parent 23346f36
2010-12-08 Richard Guenther <rguenther@suse.de>
* gimplify.c (gimple_tree_eq): Assert hashes are equal only
when checking is enabled.
2010-12-07 Andrey Belevantsev <abel@ispras.ru>
PR target/43603
......@@ -145,9 +145,11 @@ gimple_tree_eq (const void *p1, const void *p2)
if (!operand_equal_p (t1, t2, 0))
return 0;
#ifdef ENABLE_CHECKING
/* Only allow them to compare equal if they also hash equal; otherwise
results are nondeterminate, and we fail bootstrap comparison. */
gcc_assert (gimple_tree_hash (p1) == gimple_tree_hash (p2));
#endif
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment