summaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-30 11:01:26 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-30 11:01:26 +0000
commit9da15f94e01c84572d5cfcd786fa92d27c0d240c (patch)
tree89e94c45167bc166ebbe1ae2a2c33e0c8cbf65b0 /gcc/ipa-inline.c
parente86bbaeeed5c0bd4aeccc31eae6f7be4ba2b522e (diff)
downloadgcc-9da15f94e01c84572d5cfcd786fa92d27c0d240c.tar.gz
PR middle-end/48752
* 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
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 47b26f43da5..1194785acaa 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