tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal with tree_int_cst_equal.
authorJoseph Myers <jsm@polyomino.org.uk>
Sat, 3 Jul 2004 19:59:11 +0000 (20:59 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 3 Jul 2004 19:59:11 +0000 (20:59 +0100)
* tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
with tree_int_cst_equal.

From-SVN: r84062

gcc/ChangeLog
gcc/tree.c

index 5ecb9a485871f3ecf85e0d40af4a552c6695048e..e1b222a8a06ce36c20ac0d2473c9e1a1807d65e5 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
+
+       * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
+       with tree_int_cst_equal.
+
 2004-07-03  Andreas Schwab  <schwab@suse.de>
 
        * config/ia64/ia64.md: Define new attribute "empty".
index bc6d3aec1ebb5bbb6e5d047a31f81d2947e8f728..64d2dd55c13d6c8c738a1e16694750d901d45211 100644 (file)
@@ -3198,7 +3198,7 @@ type_hash_eq (const void *va, const void *vb)
               || tree_int_cst_equal (TYPE_MAX_VALUE (a->type),
                                      TYPE_MAX_VALUE (b->type)))
              && (TYPE_MIN_VALUE (a->type) == TYPE_MIN_VALUE (b->type)
-                 && tree_int_cst_equal (TYPE_MIN_VALUE (a->type),
+                 || tree_int_cst_equal (TYPE_MIN_VALUE (a->type),
                                         TYPE_MIN_VALUE (b->type))));
 
     case OFFSET_TYPE: