re PR middle-end/48752 (ICE in evaulate_conditions_for_edge at ipa-inline-analysis...
authorJan Hubicka <jh@suse.cz>
Sat, 30 Apr 2011 11:01:26 +0000 (13:01 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 30 Apr 2011 11:01:26 +0000 (11:01 +0000)
PR middle-end/48752
* ipa-inline.c (early_inliner): Disable when doing late
addition of function.

From-SVN: r173211

gcc/ChangeLog
gcc/ipa-inline.c

index 0655cf644a76954d16559d336757ccd51a8acee3..f209b7e2d23c8a2912a6b7a94b0aae4e8de44abc 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 47b26f43da54e9c2f0f999023d139b9a3aa8441d..1194785acaa658e53cd5d486bb498f6fb5ec439a 100644 (file)
@@ -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