From: Jan Hubicka Date: Thu, 9 Sep 2004 13:38:53 +0000 (+0200) Subject: tree-inline.c (expand_call_inline): Make overactive sanity check happy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3413291731548369ec5bd8c2ecda6b4e8fe1a55b;p=gcc.git tree-inline.c (expand_call_inline): Make overactive sanity check happy. middle-end/17128 * tree-inline.c (expand_call_inline): Make overactive sanity check happy. From-SVN: r87238 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0243e129a1..8e450d514ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-09 Jan Hubicka + + middle-end/17128 + * tree-inline.c (expand_call_inline): Make overactive sanity check happy. + 2004-09-09 Jan Hubicka * tree-ssa-loop-ivopts.c (peel_address): Fix abort on diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 7a80528ecfc..6286f8ab380 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -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;