tree-inline.c (expand_call_inline): Make overactive sanity check happy.
authorJan Hubicka <jh@suse.cz>
Thu, 9 Sep 2004 13:38:53 +0000 (15:38 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 9 Sep 2004 13:38:53 +0000 (13:38 +0000)
middle-end/17128
* tree-inline.c (expand_call_inline): Make overactive sanity check happy.

From-SVN: r87238

gcc/ChangeLog
gcc/tree-inline.c

index e0243e129a1116955e340baeb8517e76cf1643eb..8e450d514aed3fe21389de135f1d8863c2d25ac9 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-09  Jan Hubicka  <jh@suse.cz>
+
+       middle-end/17128
+       * tree-inline.c (expand_call_inline): Make overactive sanity check happy.
+
 2004-09-09  Jan Hubicka  <jh@suse.cz>
 
        * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
index 7a80528ecfcbde8db1ec377a59cf9a693e79f536..6286f8ab380a52a0c81ab329ebb9ff032f834afa 100644 (file)
@@ -1463,7 +1463,7 @@ expand_call_inline (tree *tp, int *walk_subtrees, void *data)
          where previous inlining turned indirect call into direct call by
          constant propagating arguments.  In all other cases we hit a bug
          (incorrect node sharing is most common reason for missing edges.  */
-      gcc_assert (dest->needed);
+      gcc_assert (dest->needed || flag_unit_at_a_time);
       cgraph_create_edge (id->node, dest, t)->inline_failed
        = N_("originally indirect function call not considered for inlining");
       goto egress;