From 93536c974233d3b400e719aac0d089185e1b5a97 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Wed, 15 Jun 2011 13:22:35 +0200 Subject: [PATCH] re PR tree-optimization/48613 (ICE: vector VEC(ipa_node_params_t,base) index domain error with -O0 -flto -findirect-inlining) 2011-06-15 Martin Jambor PR tree-optimization/48613 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if ipa_node_params_vector is NULL. From-SVN: r175077 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-prop.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4c589fa310..959edbb8c11 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-06-15 Martin Jambor + + PR tree-optimization/48613 + * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if + ipa_node_params_vector is NULL. + 2011-06-15 Jakub Jelinek PR debug/49382 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 6873c9ed9b8..f7bb3114ba6 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -2900,12 +2900,15 @@ void ipa_prop_write_jump_functions (cgraph_node_set set) { struct cgraph_node *node; - struct output_block *ob = create_output_block (LTO_section_jump_functions); + struct output_block *ob; unsigned int count = 0; cgraph_node_set_iterator csi; - ob->cgraph_node = NULL; + if (!ipa_node_params_vector) + return; + ob = create_output_block (LTO_section_jump_functions); + ob->cgraph_node = NULL; for (csi = csi_start (set); !csi_end_p (csi); csi_next (&csi)) { node = csi_node (csi); -- 2.30.2