PR middle-end/48752
* ipa-inline.c (early_inliner): Disable when doing late
addition of function.
From-SVN: r173211
+2011-04-30 Jan Hubicka <jh@suse.cz>
+
+ PR middle-end/48752
+ * ipa-inline.c (early_inliner): Disable when doing late
+ addition of function.
+
2011-04-30 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (get_address_mode): New inline.
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