re PR bootstrap/87134 (SEGV in cc1 caused by r263875)
authorRichard Biener <rguenther@suse.de>
Wed, 5 Sep 2018 11:44:13 +0000 (11:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 5 Sep 2018 11:44:13 +0000 (11:44 +0000)
2018-09-05  Richard Biener  <rguenther@suse.de>

PR bootstrap/87134
* tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Make sure
to zero-init the emplaced vec.

From-SVN: r264125

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

index 8386829..5b7cf8c 100644 (file)
@@ -1,3 +1,9 @@
+2018-09-05  Richard Biener  <rguenther@suse.de>
+
+       PR bootstrap/87134
+       * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Make sure
+       to zero-init the emplaced vec.
+
 2018-09-05  Martin Liska  <mliska@suse.cz>
 
        PR tree-optimization/87205
index 105605a..6fec624 100644 (file)
@@ -5799,6 +5799,7 @@ rpo_elim::eliminate_push_avail (basic_block bb, tree leader)
   if (!existed)
     {
       new (&av) vec<std::pair<int, int> >;
+      av = vNULL;
       av.reserve_exact (2);
     }
   av.safe_push (std::make_pair (bb->index, SSA_NAME_VERSION (leader)));