diff options
author | Richard Guenther <rguenther@suse.de> | 2011-05-16 16:07:35 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-05-16 16:07:35 +0000 |
commit | c11b69022323800dede2890fdb10b1f304e7d22f (patch) | |
tree | 8b09c10c25a2b93d6dec352b26cd040c25c42618 /gcc/gimple.c | |
parent | 1e83b5f197565d700a5a49d523e0ab77bdcbd809 (diff) | |
download | gcc-c11b69022323800dede2890fdb10b1f304e7d22f.zip gcc-c11b69022323800dede2890fdb10b1f304e7d22f.tar.gz gcc-c11b69022323800dede2890fdb10b1f304e7d22f.tar.bz2 |
gimple.c (gimple_types_compatible_p_1): Use names of the type itself, not its main variant.
2011-05-16 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_types_compatible_p_1): Use names of the
type itself, not its main variant.
(iterative_hash_gimple_type): Likewise.
From-SVN: r173795
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index ce632e0..488e971 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -3817,8 +3817,7 @@ gimple_types_compatible_p_1 (tree t1, tree t2, type_pair_t p, tree f1, f2; /* The struct tags shall compare equal. */ - if (!compare_type_names_p (TYPE_MAIN_VARIANT (t1), - TYPE_MAIN_VARIANT (t2), false)) + if (!compare_type_names_p (t1, t2, false)) goto different_types; /* For aggregate types, all the fields must be the same. */ @@ -4193,7 +4192,7 @@ iterative_hash_gimple_type (tree type, hashval_t val, unsigned nf; tree f; - v = iterative_hash_name (TYPE_NAME (TYPE_MAIN_VARIANT (type)), v); + v = iterative_hash_name (TYPE_NAME (type), v); for (f = TYPE_FIELDS (type), nf = 0; f; f = TREE_CHAIN (f)) { |