]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* lto.c (unify_scc): Free CONSTRUCTOR_ELTS.
authorJan Hubicka <hubicka@ucw.cz>
Fri, 7 Feb 2014 23:47:17 +0000 (00:47 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 7 Feb 2014 23:47:17 +0000 (23:47 +0000)
From-SVN: r207619

gcc/lto/ChangeLog
gcc/lto/lto.c

index db7b030e5ab54a120b89bdc886fb5af21224ca2c..94d19ee78bc78ce2a989f9c1ec49418153d79b24 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
+
+       * lto.c (unify_scc): Free CONSTRUCTOR_ELTS.
+
 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
 
        PR ipa/59469
index fb81f3132f19f58b29c853e6fafdc23031e5cf76..6f2428db53861ced36ec513988127a9f0362aeae 100644 (file)
@@ -1807,8 +1807,12 @@ unify_scc (struct streamer_tree_cache_d *cache, unsigned from,
          /* Free the tree nodes from the read SCC.  */
          for (unsigned i = 0; i < len; ++i)
            {
+             enum tree_code code;
              if (TYPE_P (scc->entries[i]))
                num_merged_types++;
+             code = TREE_CODE (scc->entries[i]);
+             if (CODE_CONTAINS_STRUCT (code, TS_CONSTRUCTOR))
+               vec_free (CONSTRUCTOR_ELTS (scc->entries[i]));
              ggc_free (scc->entries[i]);
            }