[Bug tree-optimization/27218] [4.1/4.2 regression] ICE in get_indirect_ref_operands, at tree-ssa-operands.c:1515, inlining produces non-gimple
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Apr 22 18:30:00 GMT 2006
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-04-22 18:29 -------
This patch fixes it for me (but I don't have time right now to test it):
Index: tree-inline.c
===================================================================
--- tree-inline.c (revision 112997)
+++ tree-inline.c (working copy)
@@ -2073,6 +2077,7 @@ expand_call_inline (basic_block bb, tree
if (CALL_EXPR_RETURN_SLOT_OPT (t))
{
return_slot_addr = build_fold_addr_expr (modify_dest);
+ STRIP_USELESS_TYPE_CONVERSION (return_slot_addr);
modify_dest = NULL;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27218
More information about the Gcc-bugs
mailing list