[Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 3 16:37:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48065

--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> 2013-01-03 16:37:00 UTC ---
Hmm, rejecting inlines late at ltrans stage really is problem as discussed
earlier - we make assumptions on the optimizations of constant parameters and
we won't export offline copy in partitioning so it may lead to undefined
reference.  How do you expect this to work? Where we do the refusal?
I do not see any code there.
I would really preffer inlining to work (and produce wrong code in undefined
cases perhaps with warning) rather than giving up on the inline plan.  If this
is not possible to implement, we can materialize a clone with the expected
constant propagated and redirect call there, but it is tricky to implement,
too.



More information about the Gcc-bugs mailing list