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

--- Comment #8 from Yury Gribov <y.gribov at samsung dot com> ---
Created attachment 31522
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31522&action=edit
Patch which inlines based on caller/callee attribute match

(In reply to Yury Gribov from comment #7)
> > And second you should compare the current function
> > attribute to fndecl attribute.
> 
> You mean compare caller's and callee's attributes? Makes a lot of sense but
> I don't think this info is available at the time
> function_attribute_inlinable_p is called:
> 
> ...
> 
> Perhaps this check should be moved to e.g. expand_call_inline?

I'm giving this a try with this new patch. Does it look reasonable for you?

Reply via email to