aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-10-22 21:18:03 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-10-22 19:18:03 +0000
commit190f08bd30e2f540cb1eeece673bfaccbd8854a0 (patch)
tree7ce709c7d3b9f7de41de5fb5007d8654d851098c /gcc/cgraph.c
parentbf5fe4734cb6840be45d8812bb529f9557bb870a (diff)
downloadgcc-190f08bd30e2f540cb1eeece673bfaccbd8854a0.zip
gcc-190f08bd30e2f540cb1eeece673bfaccbd8854a0.tar.gz
gcc-190f08bd30e2f540cb1eeece673bfaccbd8854a0.tar.bz2
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
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index b28d9f3..5daea44 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -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;
}