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>