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
This commit is contained in:
H.J. Lu 2012-07-16 12:35:10 +00:00 committed by H.J. Lu
parent a75a89ebaa
commit 59a6c9d565
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/53959
PR bootstrap/53963
* gimple.c (gimple_types_compatible_p_1): Restore type attribute
comparison.
2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
* opts.c (default_option): Add -fvect-cost-model to default options

View File

@ -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))
{