* tree.c (fld_simplified_type_of): Clear TYPELESS_STORAGE flag.
authorJan Hubicka <jh@suse.cz>
Tue, 6 Nov 2018 11:36:21 +0000 (12:36 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 6 Nov 2018 11:36:21 +0000 (11:36 +0000)
From-SVN: r265838

gcc/ChangeLog
gcc/tree.c

index 11a6b47..644c0f7 100644 (file)
@@ -1,3 +1,7 @@
+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;
index f3fce96..5647824 100644 (file)
@@ -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;