OSDN Git Service

* tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 Jul 2004 19:59:11 +0000 (19:59 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 Jul 2004 19:59:11 +0000 (19:59 +0000)
with tree_int_cst_equal.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84062 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree.c

index 5ecb9a4..e1b222a 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".
 2004-07-03  Andreas Schwab  <schwab@suse.de>
 
        * config/ia64/ia64.md: Define new attribute "empty".
index bc6d3ae..64d2dd5 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_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:
                                         TYPE_MIN_VALUE (b->type))));
 
     case OFFSET_TYPE: