On 03/19/2015 09:01 AM, Marat Zakirov wrote: > > On 03/04/2015 11:07 AM, Andrew Pinski wrote: >> On Wed, Mar 4, 2015 at 12:00 AM, Marat Zakirov >> wrote: >>> Hi all! >>> >>> Here is the patch which forces ASan to work on memory access without >>> proper >>> alignment. it's useful because some programs like linux kernel often >>> cheat >>> with alignment which may cause false negatives. This patch needs >>> additional >>> support for proper work on unaligned accesses in global data and >>> heap. It >>> will be implemented in libsanitizer by separate patch. >>> >>> >>> --Marat >>> >>> gcc/ChangeLog: >>> >>> 2015-02-25 Marat Zakirov >>> >>> * asan.c (asan_emit_stack_protection): Support for misalign >>> accesses. >>> (asan_expand_check_ifn): Likewise. >>> * params.def: New option asan-catch-misaligned. >>> * params.h: New param ASAN_CATCH_MISALIGNED. >> Since this parameter can only be true or false, I think it should be a >> normal option. Also you did not add documentation of the param. >> >> Thanks, >> Andrew > Fixed. >