mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-25 01:30:44 +08:00
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:
parent
a75a89ebaa
commit
59a6c9d565
@ -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
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user