This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/59600] no_sanitize_address mishandled when function is inlined
- From: "y.gribov at samsung dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Dec 2013 07:54:56 +0000
- Subject: [Bug sanitizer/59600] no_sanitize_address mishandled when function is inlined
- Auto-submitted: auto-generated
- References: <bug-59600-4 at http dot gcc dot gnu dot org/bugzilla/>
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?