This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/55435] [asan] implement an attribute to disable asan instrumentation for a particular function


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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-23 09:02:34 UTC ---
Author: jakub
Date: Fri Nov 23 09:02:28 2012
New Revision: 193748

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193748
Log:
    PR sanitizer/55435
    * c-common.c (handle_no_address_safety_analysis_attribute): New
    function.
    (c_common_attribute_table): Add no_address_safety_analysis.

    * asan.c (gate_asan): Don't instrument functions with
    no_address_safety_analysis attribute.
    (gate_asan_O0): Use !optimize && gate_asan ().
    * doc/extend.texi (no_address_safety_analysis): Document new
    function attribute.

    * c-c++-common/asan/attrib-1.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/asan/attrib-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/asan.c
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/doc/extend.texi
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]