Hi,
this patch adds code to clear typeless storage flag. This is needed to
enable some more merging for C++ types containing char array.

Bootstrapped/regtesed x86_64-linux, OK?

Honza

        * tree.c (fld_incomplete_type_of): Clear TYPE_TYPELESS_STORAGE
        flag.
Index: tree.c
===================================================================
--- tree.c      (revision 265835)
+++ tree.c      (working copy)
@@ -5173,6 +5173,7 @@ fld_incomplete_type_of (tree t, struct f
          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;

Reply via email to