Commit d8c9d986 by Jan Hubicka Committed by Jan Hubicka

* tree.c (fld_simplified_type_of): Clear TYPELESS_STORAGE flag.

From-SVN: r265838
parent aaabfd71
2018-11-06 Jan Hubicka <jh@suse.cz>
* tree.c (fld_simplified_type_of): Clear TYPELESS_STORAGE flag.
2018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR sanitizer/80953
......@@ -17,7 +21,7 @@
* config/sparc/sol2.h (CC1_SPEC): Append ASAN_CC1_SPEC.
(ASAN_REJECT_SPEC): Define.
018-11-06 Jan Hubicka <jh@suse.cz>
2018-11-06 Jan Hubicka <jh@suse.cz>
* tree.c (fld_type_variant): Copy canonical type.
(fld_incomplete_type_of): Check that canonical types looks sane;
......@@ -5173,6 +5173,7 @@ fld_incomplete_type_of (tree t, struct free_lang_data_d *fld)
SET_TYPE_ALIGN (copy, BITS_PER_UNIT);
TYPE_SIZE_UNIT (copy) = NULL;
TYPE_CANONICAL (copy) = TYPE_CANONICAL (t);
TYPE_TYPELESS_STORAGE (copy) = 0;
if (AGGREGATE_TYPE_P (t))
{
TYPE_FIELDS (copy) = NULL;
......
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