[cfe-commits] adding attribute no_address_safety_analysis, please review

Kostya Serebryany kcc at google.com
Fri Jan 20 13:38:20 PST 2012


Hello,

The following patch adds __attribute__((no_address_safety_analysis)) which
will allow to disable
address safety analysis (such as e.g. AddressSanitizer or SAFECode) for a
specific function.

When building with AddressSanitizer, add AddressSafety function attribute
to every generated function
except for those that have __attribute__((no_address_safety_analysis)).

With this patch we will be able to
1. disable AddressSanitizer for a particular function
2. disable AddressSanitizer-hostile optimizations (such as some cases of
load widening) when AddressSanitizer is on.

http://codereview.appspot.com/5561050/

Thanks,

--kcc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120120/a8c81afc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: issue5561050_1.diff
Type: text/x-patch
Size: 5572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120120/a8c81afc/attachment.bin>


More information about the cfe-commits mailing list