https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79198

--- Comment #7 from Martin Jambor <jamborm at gcc dot gnu.org> ---
And based on the IRC discussion I had earlier today with Markus, I
have also added the following to the patch I'm bootstrapping, even
though it is not strictly necessary to prevent OOM in the testcase
from comment #1.

diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 22cd61f3b18..834c27d100e 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -3743,6 +3743,8 @@ ipa_node_params_t::insert (cgraph_node *, ipa_node_params
*info)
 {
   info->lattices = NULL;
   info->ipcp_orig_node = NULL;
+  info->known_csts = vNULL;
+  info->known_contexts = vNULL;
   info->analysis_done = 0;
   info->node_enqueued = 0;
   info->do_clone_for_all_contexts = 0;

Reply via email to