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
This commit is contained in:
Jan Hubicka 2005-07-27 12:50:59 +02:00 committed by Jan Hubicka
parent 6a28f513f1
commit 093c232927
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2005-07-27 Jan Hubicka <jh@suse.cz>
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.

View File

@ -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;