cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when global info is not ready.

* cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
	global info is not ready.

From-SVN: r72816
This commit is contained in:
Jan Hubicka 2003-10-22 21:18:03 +02:00 committed by Jan Hubicka
parent bf5fe4734c
commit 190f08bd30
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-10-22 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
global info is not ready.
2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
* doc/extend.texi: Mention H8S wherever H8/300H is mentioned.

View File

@ -535,10 +535,8 @@ cgraph_varpool_assemble_pending_decls (void)
bool
cgraph_function_possibly_inlined_p (tree decl)
{
if (!flag_unit_at_a_time)
return (DECL_INLINE (decl) && !flag_no_inline);
if (!cgraph_global_info_ready)
abort ();
return (DECL_INLINE (decl) && !flag_no_inline);
return cgraph_node (decl)->global.inlined;
}