http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59600
Yury Gribov <y.gribov at samsung dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #31515|0 |1
is obsolete| |
--- Comment #5 from Yury Gribov <y.gribov at samsung dot com> ---
Created attachment 31516
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31516&action=edit
New patch based on Andrew's review
(In reply to Andrew Pinski from comment #3)
> Or better yet handle the case where the attributes diff
> inside function_attribute_inlinable_p
> so you don't lose that much optimizations
> only when the attributes differ.
Yup and this would also work for non-C-family frontends.
How about this patch then?