PR middle-end/53959
	PR bootstrap/53963
	* gimple.c (gimple_types_compatible_p_1): Restore type attribute
	comparison.
From-SVN: r189528
+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
 
        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))
     {