re PR middle-end/70239 (ICE in ggc_set_mark)
authorJakub Jelinek <jakub@redhat.com>
Tue, 15 Mar 2016 16:10:59 +0000 (17:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 15 Mar 2016 16:10:59 +0000 (17:10 +0100)
PR middle-end/70239
* tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
of safe_grow.

From-SVN: r234221

gcc/ChangeLog
gcc/tree-ssa-sccvn.c

index de099d6..9aa11be 100644 (file)
@@ -1,3 +1,9 @@
+2016-03-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/70239
+       * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
+       of safe_grow.
+
 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
 
        PR rtl-optimization/69032
index 1c237a4..8a5b641 100644 (file)
@@ -407,7 +407,7 @@ VN_INFO_GET (tree name)
   newinfo = XOBNEW (&vn_ssa_aux_obstack, struct vn_ssa_aux);
   memset (newinfo, 0, sizeof (struct vn_ssa_aux));
   if (SSA_NAME_VERSION (name) >= vn_ssa_aux_table.length ())
-    vn_ssa_aux_table.safe_grow (SSA_NAME_VERSION (name) + 1);
+    vn_ssa_aux_table.safe_grow_cleared (SSA_NAME_VERSION (name) + 1);
   vn_ssa_aux_table[SSA_NAME_VERSION (name)] = newinfo;
   return newinfo;
 }