GCC Bugzilla – Attachment 31515 Details for
Bug 59600
no_sanitize_address mishandled when function is inlined
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Draft patch
asan_inline_fix_1.diff (text/plain), 791 bytes, created by
Yury Gribov
on 2013-12-26 05:03:55 UTC
(
hide
)
Description:
Draft patch
Filename:
MIME Type:
Creator:
Yury Gribov
Created:
2013-12-26 05:03:55 UTC
Size:
791 bytes
patch
obsolete
>diff --git a/gcc/attribs.c b/gcc/attribs.c >index 19b697d..280788f 100644 >--- a/gcc/attribs.c >+++ b/gcc/attribs.c >@@ -424,6 +424,16 @@ decl_attributes (tree *node, tree attributes, int flags) > attributes = tree_cons (get_identifier ("noclone"), NULL, attributes); > } > >+ /* Non-sanitized functions should not be inlined. */ >+ if (TREE_CODE (*node) == FUNCTION_DECL >+ && attributes >+ && lookup_attribute_spec (get_identifier ("no_sanitize_address")) >+ && lookup_attribute ("no_sanitize_address", attributes) != NULL) >+ { >+ if (lookup_attribute ("noinline", attributes) == NULL) >+ attributes = tree_cons (get_identifier ("noinline"), NULL, attributes); >+ } >+ > targetm.insert_attributes (*node, &attributes); > > for (a = attributes; a; a = TREE_CHAIN (a))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 59600
:
31514
|
31515
|
31516
|
31522