From: Martin Jambor Date: Wed, 15 Jun 2011 11:22:35 +0000 (+0200) Subject: re PR tree-optimization/48613 (ICE: vector VEC(ipa_node_params_t,base) index domain... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93536c974233d3b400e719aac0d089185e1b5a97;p=gcc.git 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 --- 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);