diff options
author | Richard Guenther <rguenther@suse.de> | 2010-12-08 16:14:29 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-12-08 16:14:29 +0000 |
commit | fdd7cdbfeed6b3bb25af2221fe00ccf44e6e51b2 (patch) | |
tree | 6738e32b01b0b7aab34ae212f1456e9937a4199e /gcc/gimplify.c | |
parent | 23346f368bbbd29d11fc0685be20ecf3ef3b6dc0 (diff) | |
download | gcc-fdd7cdbfeed6b3bb25af2221fe00ccf44e6e51b2.zip gcc-fdd7cdbfeed6b3bb25af2221fe00ccf44e6e51b2.tar.gz gcc-fdd7cdbfeed6b3bb25af2221fe00ccf44e6e51b2.tar.bz2 |
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
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 10e2b24..350d793 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -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; } |