mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 05:10:25 +08:00
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
This commit is contained in:
parent
dd95381f8a
commit
eb1a2c880a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user