------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-11 17:43 ------- This fixes the problem for me (basically what this patch does is gets rid of the check for CALL_EXPR because we do the fold later and it would not cause any other issue): Diego, what do you think of this (with the additional updated comment)? Index: tree-ssa.c =============================================================== ==== RCS file: /cvs/gcc/gcc/gcc/tree-ssa.c,v retrieving revision 2.45 diff -u -p -r2.45 tree-ssa.c --- tree-ssa.c 5 Oct 2004 13:57:06 -0000 2.45 +++ tree-ssa.c 11 Oct 2004 17:41:31 -0000 @@ -1048,7 +1048,7 @@ replace_immediate_uses (tree var, tree r Note that all this will become unnecessary soon. This pass is being replaced with a proper copy propagation pass for 4.1 (dnovillo, 2004-09-17). */ - if (TREE_CODE (repl) != SSA_NAME) + if (TREE_CODE (repl) != SSA_NAME && TREE_CODE (stmt) != CALL_EXPR) { tree tmp = stmt; fold_stmt (&tmp);
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17656