re PR tree-optimization/48613 (ICE: vector VEC(ipa_node_params_t,base) index domain...
authorMartin Jambor <mjambor@suse.cz>
Wed, 15 Jun 2011 11:22:35 +0000 (13:22 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 15 Jun 2011 11:22:35 +0000 (13:22 +0200)
2011-06-15  Martin Jambor  <mjambor@suse.cz>

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
gcc/ipa-prop.c

index a4c589fa31092cf1f84e4ec335bb3e075a13f327..959edbb8c11d0eaa516b9bfa55c58e89f1e349ec 100644 (file)
@@ -1,3 +1,9 @@
+2011-06-15  Martin Jambor  <mjambor@suse.cz>
+
+       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  <jakub@redhat.com>
 
        PR debug/49382
index 6873c9ed9b886edc467f0d9eee7c64a3d51a8821..f7bb3114ba6fcbe2f0d6be7764d0b2bfd4b1b215 100644 (file)
@@ -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);