* tree.c (fld_type_variant): Also copy alignment; be sure that
new variant is equal.
From-SVN: r265845
+2018-11-06 Jan Hubicka <jh@suse.cz>
+
+ * tree.c (fld_type_variant): Also copy alignment; be sure that
+ new variant is equal.
+
2018-11-06 Ilya Leoshkevich <iii@linux.ibm.com>
PR target/87762
TYPE_NAME (v) = TYPE_NAME (t);
TYPE_ATTRIBUTES (v) = TYPE_ATTRIBUTES (t);
TYPE_CANONICAL (v) = TYPE_CANONICAL (t);
+ SET_TYPE_ALIGN (v, TYPE_ALIGN (t));
+ gcc_checking_assert (fld_type_variant_equal_p (t,v));
add_tree_to_fld_list (v, fld);
return v;
}