diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2012-07-16 12:35:10 +0000 |
---|---|---|
committer | H.J. Lu <hongjiu.lu@intel.com> | 2012-07-16 12:35:10 +0000 |
commit | f2ef4a17e933998fb533cb907510229885a7d7d7 (patch) | |
tree | 28eab78263a7d683f35ebcacebdd50f4395dda4e /gcc/gimple.c | |
parent | eec752c7c2e79ec20ed7efc8239b6be24edb7da5 (diff) |
Restore type attribute comparison
PR middle-end/53959
PR bootstrap/53963
* gimple.c (gimple_types_compatible_p_1): Restore type attribute
comparison.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@189528 138bc75d-0d04-0410-961f-82ee72b054a4
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 b419591d3ec..4d2a0f5ffde 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)) { |