Index: cfgexpand.c =================================================================== --- cfgexpand.c (revision 172371) +++ cfgexpand.c (working copy) @@ -1844,7 +1844,10 @@ expand_call_stmt (gimple stmt) exp = build_vl_exp (CALL_EXPR, gimple_call_num_args (stmt) + 3); - CALL_EXPR_FN (exp) = gimple_call_fn (stmt); + CALL_EXPR_FN (exp) + = fold_build1 (NOP_EXPR, build_pointer_type (gimple_call_fntype (stmt)), + gimple_call_fn (stmt)); + decl = gimple_call_fndecl (stmt); builtin_p = decl && DECL_BUILT_IN (decl);