c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN with TYPE_ORIG_SIZE_TYPE.
authorDiego Novillo <dnovillo@redhat.com>
Fri, 26 Mar 2004 19:02:55 +0000 (19:02 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Fri, 26 Mar 2004 19:02:55 +0000 (14:02 -0500)
* c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
  with TYPE_ORIG_SIZE_TYPE.

From-SVN: r79991

gcc/ChangeLog
gcc/c-typeck.c

index a8185433a1bad20909c7c8cd5fd3f9504af71313..3589d427d535422c013ae0771c6f75dc6ee9dbd6 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-26  Diego Novillo  <dnovillo@redhat.com>
+
+       * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
+         with TYPE_ORIG_SIZE_TYPE.
+
 2004-03-25  Aldy Hernandez  <aldyh@redhat.com>
  
         PR 14219
index c3a1e87ecc4db7569c6003fc1d90c953bace09c6..59bccab3930f58725a9be021c542635f14ab45fb 100644 (file)
@@ -464,12 +464,13 @@ comptypes (tree type1, tree type2, int flags)
   /* If either type is the internal version of sizetype, return the
      language version.  */
   if (TREE_CODE (t1) == INTEGER_TYPE && TYPE_IS_SIZETYPE (t1)
-      && TYPE_DOMAIN (t1) != 0)
-    t1 = TYPE_DOMAIN (t1);
+      && TYPE_ORIG_SIZE_TYPE (t1))
+    t1 = TYPE_ORIG_SIZE_TYPE (t1);
 
   if (TREE_CODE (t2) == INTEGER_TYPE && TYPE_IS_SIZETYPE (t2)
-      && TYPE_DOMAIN (t2) != 0)
-    t2 = TYPE_DOMAIN (t2);
+      && TYPE_ORIG_SIZE_TYPE (t2))
+    t2 = TYPE_ORIG_SIZE_TYPE (t2);
+
 
   /* Enumerated types are compatible with integer types, but this is
      not transitive: two enumerated types in the same translation unit