gimplify.c (gimple_tree_eq): Assert hashes are equal only when checking is enabled.
authorRichard Guenther <rguenther@suse.de>
Wed, 8 Dec 2010 16:14:29 +0000 (16:14 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 8 Dec 2010 16:14:29 +0000 (16:14 +0000)
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

gcc/ChangeLog
gcc/gimplify.c

index 4c5932d9e30619aa3977779706c4bf4b900062f9..1f23738d51c4dff05eaf2b1fbad6760bd99ba10c 100644 (file)
@@ -1,3 +1,8 @@
+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
index 10e2b24a33e4e0a13d11c3e38588268b00d88fb4..350d793b7472ed87db98d8a675358554d4daa4b8 100644 (file)
@@ -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;
 }