From: Martin Jambor Date: Mon, 19 Apr 2010 17:55:22 +0000 (+0200) Subject: cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update new_stmt. X-Git-Tag: releases/gcc-4.6.0~7783 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b6e2868bd587540b38e2122876cbe32f1a2a35e;p=thirdparty%2Fgcc.git cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update new_stmt. 2010-04-19 Martin Jambor * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update new_stmt. (cgraph_materialize_all_clones): Assert !need_ssa_update_p. From-SVN: r158522 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 273d492ee933..4e2e9072fd9d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-04-19 Martin Jambor + + * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update + new_stmt. + (cgraph_materialize_all_clones): Assert !need_ssa_update_p. + 2010-04-19 Richard Guenther PR tree-optimization/43796 diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 212ab3aa1abf..afcd660ee402 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -2260,6 +2260,7 @@ cgraph_redirect_edge_call_stmt_to_callee (struct cgraph_edge *e) gsi = gsi_for_stmt (e->call_stmt); gsi_replace (&gsi, new_stmt, true); + update_stmt (new_stmt); /* Update EH information too, just in case. */ maybe_clean_or_replace_eh_stmt (e->call_stmt, new_stmt); @@ -2363,6 +2364,7 @@ cgraph_materialize_all_clones (void) push_cfun (DECL_STRUCT_FUNCTION (node->decl)); for (e = node->callees; e; e = e->next_callee) cgraph_redirect_edge_call_stmt_to_callee (e); + gcc_assert (!need_ssa_update_p (cfun)); pop_cfun (); current_function_decl = NULL; #ifdef ENABLE_CHECKING