OSDN Git Service

PR middle-end/48752
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Apr 2011 11:01:26 +0000 (11:01 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Apr 2011 11:01:26 +0000 (11:01 +0000)
* ipa-inline.c (early_inliner): Disable when doing late
addition of function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173211 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-inline.c

index 0655cf6..f209b7e 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 47b26f4..1194785 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