This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[wwwdocs] Add no_sanitize attribute
- From: Martin Liška <mliska at suse dot cz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Gerald Pfeifer <gerald at pfeifer dot com>
- Date: Wed, 18 Apr 2018 14:22:27 +0200
- Subject: [wwwdocs] Add no_sanitize attribute
I would like to mention the attribute in GCC 8 changes.
Martin
Index: htdocs/gcc-8/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/changes.html,v
retrieving revision 1.67
diff -r1.67 changes.html
255a256,266
> <li>
> New <code>no_sanitize</code> attribute has been added. The attribute
> on functions is used to inform the compiler that it should
> not do sanitization of all options mentioned in sanitize option.
> A list of values acceptable by <code>-fsanitize</code> option can be
> provided.
> <blockquote><pre>
> void __attribute__ ((no_sanitize ("alignment", "object-size")))
> f () { /* Do something. */; }
> </pre></blockquote>
> </li>