https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533

--- Comment #3 from Yury Gribov <y.gribov at samsung dot com> ---
> If g is called with argument that is usually 0,
> then the partial inlining makes sense.

But note that there are zero callers of g in the file so no inlining can happen
anyway. Frankly I was surprised to see this !address_taken there, what's the
reasoning behind it?

> I guess it is a problem that we try to apply stack size limit
> to prevent inlining of .part into the original function body.

Exactly.

> Perhaps inliner should special case this and bypass the limits?

You mean ignore stack limits if we somehow know that callee was originally part
of the caller? Probably could be done but looks somewhat hacky.

Reply via email to