]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when global info is...
authorJan Hubicka <jh@suse.cz>
Wed, 22 Oct 2003 19:18:03 +0000 (21:18 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 22 Oct 2003 19:18:03 +0000 (19:18 +0000)
* cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
global info is not ready.

From-SVN: r72816

gcc/ChangeLog
gcc/cgraph.c

index 4c189a9944538963b42158db8393e2ea9f4e36f7..bd9d632ec0d3c8dd098571ebc5f2710a81987663 100644 (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.
index b28d9f3a6c0cc59df6e1f27025b1550f52d61c77..5daea448500ee219fa777e80c07e07d96af5d11c 100644 (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;
 }