From 76a5eae5494440844a9b6d0171efdcf4ebb6f3c6 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 5 Sep 2018 11:44:13 +0000 Subject: [PATCH] re PR bootstrap/87134 (SEGV in cc1 caused by r263875) 2018-09-05 Richard Biener 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 | 6 ++++++ gcc/tree-ssa-sccvn.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8386829287d..5b7cf8cdafe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-09-05 Richard Biener + + 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 PR tree-optimization/87205 diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 105605a45f8..6fec6243a59 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -5799,6 +5799,7 @@ rpo_elim::eliminate_push_avail (basic_block bb, tree leader) if (!existed) { new (&av) vec >; + av = vNULL; av.reserve_exact (2); } av.safe_push (std::make_pair (bb->index, SSA_NAME_VERSION (leader))); -- 2.30.2