public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Inline Expansion Problem
@ 2011-08-27  2:48 Matt Davis
  2011-08-27  7:28 ` Richard Guenther
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Davis @ 2011-08-27  2:48 UTC (permalink / raw)
  To: gcc

Hello,
I am having the compiler insert a call to a function which is defined inside
another object file.  However, during inline expansion via expand_call_inline(),
the following assertion fails in tree-inline.c:
>> 3775: edge = cgraph_edge (id->dst_node, stmt);
>> 3776: gcc_checking_assert (cg_edge);

cg_node comes back as being NULL since there is only one callee and no indirect
calls, the function that has the inserted call is main().  Is there something I
forgot to do after inserting the gimple call statement?  This works fine without
optimization.

-Matt

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-08-28  8:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-27  2:48 Inline Expansion Problem Matt Davis
2011-08-27  7:28 ` Richard Guenther
2011-08-27  8:07   ` Matt Davis
2011-08-27  9:26     ` Richard Guenther
2011-08-27 23:30       ` Matt Davis
2011-08-28  8:30         ` Richard Guenther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).