aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2004-03-26 19:02:55 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2004-03-26 14:02:55 -0500
commiteb1a2c880a767e472e715c7587cb4ac3dc953bf9 (patch)
tree2f0ea0f1d2c2c1701ac1f2199f1f664384cfca66 /gcc
parentdd95381f8a60deb34874609b78ecaf3fb3b11ad0 (diff)
downloadgcc-eb1a2c880a767e472e715c7587cb4ac3dc953bf9.zip
gcc-eb1a2c880a767e472e715c7587cb4ac3dc953bf9.tar.gz
gcc-eb1a2c880a767e472e715c7587cb4ac3dc953bf9.tar.bz2
c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN with TYPE_ORIG_SIZE_TYPE.
* c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN with TYPE_ORIG_SIZE_TYPE. From-SVN: r79991
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-typeck.c9
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a818543..3589d42 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index c3a1e87..59bccab 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -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