middle-end/17128
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 2004 13:38:53 +0000 (13:38 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 2004 13:38:53 +0000 (13:38 +0000)
* tree-inline.c (expand_call_inline): Make overactive sanity check happy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87238 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-inline.c

index e0243e1..8e450d5 100644 (file)
@@ -1,5 +1,10 @@
 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
        VIEW_CONVERT_EXPR.
 
index 7a80528..6286f8a 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;