From ecb62563676df6c02822c878077f64a552a64df8 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 30 Apr 2011 13:01:26 +0200 Subject: re PR middle-end/48752 (ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466) PR middle-end/48752 * ipa-inline.c (early_inliner): Disable when doing late addition of function. From-SVN: r173211 --- gcc/ipa-inline.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/ipa-inline.c') diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 47b26f4..1194785 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1664,6 +1664,15 @@ early_inliner (void) if (seen_error ()) return 0; + /* Do nothing if datastructures for ipa-inliner are already computed. This + happens when some pass decides to construct new function and + cgraph_add_new_function calls lowering passes and early optimization on + it. This may confuse ourself when early inliner decide to inline call to + function clone, because function clones don't have parameter list in + ipa-prop matching their signature. */ + if (ipa_node_params_vector) + return 0; + #ifdef ENABLE_CHECKING verify_cgraph_node (node); #endif -- cgit v1.1