Commit f8d69798 by Jan Hubicka Committed by Jan Hubicka

tree.c (fld_type_variant): Also copy alignment; be sure that new variant is equal.


	* tree.c (fld_type_variant): Also copy alignment; be sure that
	new variant is equal.

From-SVN: r265845
parent 14cfceb7
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
......@@ -5119,6 +5119,8 @@ fld_type_variant (tree first, tree t, struct free_lang_data_d *fld)
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment