From 093c23292726ecdf18dccf87f042ea2b03270792 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 27 Jul 2005 12:50:59 +0200 Subject: [PATCH] re PR tree-optimization/22574 (ICE with IMA and optimization and extern inline) PR tree-optimization/22574 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are not available. From-SVN: r102423 --- gcc/ChangeLog | 4 ++++ gcc/cgraph.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f5627878c70..d975412f234 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2005-07-27 Jan Hubicka + PR tree-optimization/22574 + * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are + not available. + * tree-tailcall.c (decrease_profile): New function. (eliminate_tail_call): Use it. diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 2538442fd0d..ffc8d25eb5f 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -979,7 +979,7 @@ cgraph_function_body_availability (struct cgraph_node *node) { enum availability avail; gcc_assert (cgraph_function_flags_ready); - if (!node->local.finalized) + if (!node->analyzed) avail = AVAIL_NOT_AVAILABLE; else if (node->local.local) avail = AVAIL_LOCAL;