[Bug tree-optimization/27341] [4.2 Regression] ICE in in add_virtual_operand with complex types

dberlin at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 15 15:18:00 GMT 2006



------- Comment #11 from dberlin at gcc dot gnu dot org  2006-06-15 15:04 -------
This should fix it
It looks like gimplify_val never calls mark_new_vars_to_rename, but may create
new statements that nothing else gets a handle to.

Index: tree-cfg.c
===================================================================
--- tree-cfg.c  (revision 114136)
+++ tree-cfg.c  (working copy)
@@ -5584,6 +5584,8 @@ gimplify_val (block_stmt_iterator *bsi,
   TREE_BLOCK (new_stmt) = TREE_BLOCK (orig_stmt);

   bsi_insert_before (bsi, new_stmt, BSI_SAME_STMT);
+  if (in_ssa_p)
+    mark_new_vars_to_rename (new_stmt);

   return t;
 }

I'll look at this bug anyway


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27341



More information about the Gcc-bugs mailing list