This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/27341] [4.2 Regression] ICE in in add_virtual_operand with complex types
- From: "dberlin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2006 15:04:44 -0000
- Subject: [Bug tree-optimization/27341] [4.2 Regression] ICE in in add_virtual_operand with complex types
- References: <bug-27341-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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