diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2012-07-16 12:35:10 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2012-07-16 05:35:10 -0700 |
commit | 59a6c9d56580c806c493a50c8902fd2177074399 (patch) | |
tree | 28eab78263a7d683f35ebcacebdd50f4395dda4e /gcc/gimple.c | |
parent | a75a89ebaadc09e289f1808bcb091e25443439a3 (diff) | |
download | gcc-59a6c9d56580c806c493a50c8902fd2177074399.zip gcc-59a6c9d56580c806c493a50c8902fd2177074399.tar.gz gcc-59a6c9d56580c806c493a50c8902fd2177074399.tar.bz2 |
Restore type attribute comparison
PR middle-end/53959
PR bootstrap/53963
* gimple.c (gimple_types_compatible_p_1): Restore type attribute
comparison.
From-SVN: r189528
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index b419591..4d2a0f5 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -3422,6 +3422,10 @@ gimple_types_compatible_p_1 (tree t1, tree t2, type_pair_t p, goto different_types; } + /* If their attributes are not the same they can't be the same type. */ + if (!attribute_list_equal (TYPE_ATTRIBUTES (t1), TYPE_ATTRIBUTES (t2))) + goto different_types; + /* Do type-specific comparisons. */ switch (TREE_CODE (t1)) { |