http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49538

--- Comment #6 from Markus Trippelsdorf <markus at trippelsdorf dot de> 
2011-07-07 14:43:49 UTC ---
It's the first hunk that causes the problem:

diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c
index 43e0f81..b008f05 100644
--- a/gcc/ipa-inline-analysis.c
+++ b/gcc/ipa-inline-analysis.c
@@ -2079,7 +2079,7 @@ do_estimate_edge_time (struct cgraph_edge *edge)
   struct inline_edge_summary *es = inline_edge_summary (edge);

   gcc_checking_assert (edge->inline_failed);
-  estimate_node_size_and_time (edge->callee,
+  estimate_node_size_and_time (cgraph_function_or_thunk_node (edge->callee,
NULL),
                               evaluate_conditions_for_edge (edge, true),
                               &size, &time);

Reply via email to